possible fix for word of the day

This commit is contained in:
Jacob Dubin
2026-04-18 22:14:28 -05:00
parent d4dbfefa06
commit b77f332350
15 changed files with 4444 additions and 3 deletions

View File

@@ -143,8 +143,10 @@ public sealed class JiboInteractionServiceTests
Assert.Equal("word_of_the_day", decision.IntentName);
Assert.Equal("Starting word of the day.", decision.ReplyText);
Assert.Equal("@be/word-of-the-day", decision.SkillName);
Assert.Equal("word-of-the-day", decision.SkillPayload!["destination"]);
Assert.Null(decision.SkillName);
Assert.Equal("menu", decision.SkillPayload["redirectIntent"]);
Assert.Equal("word-of-the-day", decision.SkillPayload["redirectDomain"]);
}
[Fact]

View File

@@ -495,6 +495,10 @@ public sealed class JiboWebSocketServiceTests
using var skillPayload = JsonDocument.Parse(replies[2].Text!);
Assert.Equal("@be/word-of-the-day", skillPayload.RootElement.GetProperty("data").GetProperty("skill").GetProperty("id").GetString());
Assert.Equal("REDIRECT", skillPayload.RootElement.GetProperty("data").GetProperty("action").GetProperty("config").GetProperty("jcp").GetProperty("type").GetString());
Assert.Equal("menu", skillPayload.RootElement.GetProperty("data").GetProperty("action").GetProperty("config").GetProperty("jcp").GetProperty("config").GetProperty("nlu").GetProperty("intent").GetString());
Assert.Equal("word-of-the-day", skillPayload.RootElement.GetProperty("data").GetProperty("action").GetProperty("config").GetProperty("jcp").GetProperty("config").GetProperty("nlu").GetProperty("entities").GetProperty("domain").GetString());
Assert.Equal(string.Empty, skillPayload.RootElement.GetProperty("data").GetProperty("action").GetProperty("config").GetProperty("jcp").GetProperty("config").GetProperty("asr").GetProperty("text").GetString());
var session = _store.FindSessionByToken("hub-wod-launch-token");
Assert.NotNull(session);