-
Notifications
You must be signed in to change notification settings - Fork 281
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
port: resume dialog fix from .net (#3525)
Fixes #3524
- Loading branch information
1 parent
65599cc
commit 6bd641e
Showing
7 changed files
with
228 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
148 changes: 148 additions & 0 deletions
148
...ting/tests/resources/AdaptiveDialogTests/AdaptiveDialog_ParentBotInterruption.test.dialog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,148 @@ | ||
{ | ||
"$schema": "../../../tests.schema", | ||
"$kind": "Microsoft.Test.Script", | ||
"dialog": { | ||
"$kind": "Microsoft.AdaptiveDialog", | ||
"id": "AdaptiveDialog", | ||
"recognizer": { | ||
"$kind": "Microsoft.RegexRecognizer", | ||
"intents": [ | ||
{ | ||
"intent": "dialoga", | ||
"pattern": "(?i)dialoga" | ||
}, | ||
{ | ||
"intent": "dialogb", | ||
"pattern": "(?i)dialogb" | ||
} | ||
] | ||
}, | ||
"triggers": [ | ||
{ | ||
"$kind": "Microsoft.OnIntent", | ||
"intent": "dialoga", | ||
"actions": [ | ||
{ | ||
"$kind": "Microsoft.BeginDialog", | ||
"dialog": { | ||
"id": "dialogA", | ||
"$kind": "Microsoft.AdaptiveDialog", | ||
"recognizer": { | ||
"$kind": "Microsoft.RegexRecognizer" | ||
}, | ||
"triggers": [ | ||
{ | ||
"$kind": "Microsoft.OnBeginDialog", | ||
"actions": [ | ||
{ | ||
"$kind": "Microsoft.TextInput", | ||
"allowInterruptions": true, | ||
"property": "dialog.value", | ||
"prompt": "DialogA Prompt" | ||
}, | ||
{ | ||
"$kind": "Microsoft.SendActivity", | ||
"activity": "DialogA: ${dialog.value}" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"$kind": "Microsoft.OnIntent", | ||
"intent": "dialogb", | ||
"actions": [ | ||
{ | ||
"$kind": "Microsoft.BeginDialog", | ||
"dialog": { | ||
"$kind": "Microsoft.AdaptiveDialog", | ||
"id": "dialogB", | ||
"recognizer": { | ||
"$kind": "Microsoft.RegexRecognizer" | ||
}, | ||
"triggers": [ | ||
{ | ||
"$kind": "Microsoft.OnBeginDialog", | ||
"actions": [ | ||
{ | ||
"$kind": "Microsoft.TextInput", | ||
"allowInterruptions": true, | ||
"property": "dialog.value", | ||
"prompt": "DialogB Prompt" | ||
}, | ||
{ | ||
"$kind": "Microsoft.SendActivity", | ||
"activity": "DialogB: ${dialog.value}" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"$kind": "Microsoft.OnIntent", | ||
"intent": "Santa", | ||
"actions": [ | ||
{ | ||
"$kind": "Microsoft.SendActivity", | ||
"activity": "I love you santa." | ||
} | ||
] | ||
}, | ||
{ | ||
"$kind": "Microsoft.OnUnknownIntent", | ||
"actions": [ | ||
{ | ||
"$kind": "Microsoft.SendActivity", | ||
"activity": "In None..." | ||
} | ||
] | ||
} | ||
], | ||
"autoEndDialog": false, | ||
"defaultResultProperty": "dialog.result" | ||
}, | ||
"script": [ | ||
{ | ||
"$kind": "Microsoft.Test.UserSays", | ||
"text": "dialoga" | ||
}, | ||
{ | ||
"$kind": "Microsoft.Test.AssertReply", | ||
"text": "DialogA Prompt" | ||
}, | ||
{ | ||
"$kind": "Microsoft.Test.UserSays", | ||
"text": "dialogb" | ||
}, | ||
{ | ||
"$kind": "Microsoft.Test.AssertReply", | ||
"text": "DialogB Prompt" | ||
}, | ||
{ | ||
"$kind": "Microsoft.Test.UserSays", | ||
"text": "testb" | ||
}, | ||
{ | ||
"$kind": "Microsoft.Test.AssertReply", | ||
"text": "DialogB: testb" | ||
}, | ||
{ | ||
"$kind": "Microsoft.Test.AssertReply", | ||
"text": "DialogA Prompt" | ||
}, | ||
{ | ||
"$kind": "Microsoft.Test.UserSays", | ||
"text": "testa" | ||
}, | ||
{ | ||
"$kind": "Microsoft.Test.AssertReply", | ||
"text": "DialogA: testa" | ||
} | ||
] | ||
} |
Oops, something went wrong.