mirror of https://github.com/vector-im/riot-web
parent
37c875b863
commit
faaca43a75
|
@ -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();
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue