more loggin'

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/21833/head
Michael Telatynski 2020-05-27 13:35:15 +01:00
parent 37c875b863
commit faaca43a75
1 changed files with 16 additions and 2 deletions

View File

@ -20,18 +20,32 @@ module.exports = async function toastScenarios(alice, bob) {
console.log(" checking and clearing toasts:");
alice.log.startGroup(`clears toasts`);
alice.log.step(`accepts desktop notifications toast`);
await acceptToast(alice, "Notifications");
alice.log.done();
alice.log.step(`accepts analytics toast`);
await acceptToast(alice, "Help us improve Riot");
alice.log.done();
alice.log.step(`checks no remaining toasts`);
await assertNoToasts(alice);
alice.log.done();
alice.log.endGroup();
bob.log.startGroup(`clears toasts`);
alice.log.step(`reject desktop notifications toast`);
bob.log.step(`reject desktop notifications toast`);
await rejectToast(bob, "Notifications");
alice.log.step(`reject analytics toast`);
bob.log.done();
bob.log.step(`reject analytics toast`);
await rejectToast(bob, "Help us improve Riot");
bob.log.done();
bob.log.step(`checks no remaining toasts`);
await assertNoToasts(bob);
bob.log.done();
bob.log.endGroup();
};