check if it is a race

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/21833/head
Michael Telatynski 2020-05-27 13:48:20 +01:00
parent 841ce74ac2
commit 627b568588
1 changed files with 2 additions and 0 deletions

View File

@ -29,6 +29,7 @@ module.exports = async function toastScenarios(alice, bob) {
await acceptToast(alice, "Help us improve Riot");
alice.log.done();
await alice.delay(300);
alice.log.step(`checks no remaining toasts`);
await assertNoToasts(alice);
alice.log.done();
@ -44,6 +45,7 @@ module.exports = async function toastScenarios(alice, bob) {
await rejectToast(bob, "Help us improve Riot");
bob.log.done();
await bob.delay(300);
bob.log.step(`checks no remaining toasts`);
await assertNoToasts(bob);
bob.log.done();