Skip to content
This repository was archived by the owner on Jun 10, 2022. It is now read-only.

Commit 0877fa7

Browse files
committed
Add response to prompt test
1 parent 6515cf6 commit 0877fa7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/functional-tests/src/tests/prompt-test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ export default class PromptTest extends Test {
2929
});
3030
noTextButton.setBehavior(MRE.ButtonBehavior).onClick(user => {
3131
user.prompt(`Hello ${user.name}!`)
32+
.then(res => {
33+
noTextButton.text.contents =
34+
`Click for message\nLast response: ${res.submitted ? "<ok>" : "<cancelled>"}`;
35+
})
3236
.catch(err => {
3337
console.error(err);
3438
success = false;

0 commit comments

Comments
 (0)