You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-08-07 21:23:00 +03:00
@@ -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();
|
||||
};
|
||||
|
Reference in New Issue
Block a user