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

Commit

Permalink
Add response to prompt test
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenvergenz committed Oct 1, 2019
1 parent 6515cf6 commit 0877fa7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/functional-tests/src/tests/prompt-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ export default class PromptTest extends Test {
});
noTextButton.setBehavior(MRE.ButtonBehavior).onClick(user => {
user.prompt(`Hello ${user.name}!`)
.then(res => {
noTextButton.text.contents =
`Click for message\nLast response: ${res.submitted ? "<ok>" : "<cancelled>"}`;
})
.catch(err => {
console.error(err);
success = false;
Expand Down

0 comments on commit 0877fa7

Please sign in to comment.