last round of testing fixes
This commit is contained in:
@@ -887,6 +887,7 @@ public sealed class JiboInteractionServiceTests
|
||||
|
||||
Assert.Equal("cloud_version", decision.IntentName);
|
||||
Assert.Equal(OpenJiboCloudBuildInfo.SpokenVersion, decision.ReplyText);
|
||||
Assert.DoesNotContain("Jibo", decision.ReplyText, StringComparison.OrdinalIgnoreCase);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
@@ -97,6 +97,19 @@ public sealed class JiboWebSocketServiceTests
|
||||
Assert.Equal("cloud_version", listenPayload.RootElement.GetProperty("data").GetProperty("nlu").GetProperty("intent").GetString());
|
||||
Assert.True(listenPayload.RootElement.GetProperty("data").GetProperty("match").GetProperty("skipSurprises").GetBoolean());
|
||||
|
||||
using var skillPayload = JsonDocument.Parse(replies[2].Text!);
|
||||
var esml = skillPayload.RootElement
|
||||
.GetProperty("data")
|
||||
.GetProperty("action")
|
||||
.GetProperty("config")
|
||||
.GetProperty("jcp")
|
||||
.GetProperty("config")
|
||||
.GetProperty("play")
|
||||
.GetProperty("esml")
|
||||
.GetString();
|
||||
Assert.Contains("Cloud version", esml, StringComparison.OrdinalIgnoreCase);
|
||||
Assert.DoesNotContain("Jibo", esml, StringComparison.OrdinalIgnoreCase);
|
||||
|
||||
var session = _store.FindSessionByToken("hub-cloud-version-token");
|
||||
Assert.NotNull(session);
|
||||
Assert.Equal("cloud_version", session.LastIntent);
|
||||
|
||||
Reference in New Issue
Block a user