mirror of https://github.com/vector-im/riot-web
Bob needs to accept the toast too
parent
cc18438a0a
commit
6994b8c5ea
|
@ -26,7 +26,7 @@ module.exports = async function toastScenarios(alice, bob) {
|
||||||
|
|
||||||
alice.log.step(`accepts rebrand toast`);
|
alice.log.step(`accepts rebrand toast`);
|
||||||
await acceptToast(alice, "Riot is now Element!");
|
await acceptToast(alice, "Riot is now Element!");
|
||||||
const doneButton = await alice.query('.mx_Dialog_primary');
|
let doneButton = await alice.query('.mx_Dialog_primary');
|
||||||
await doneButton.click(); // also accept the resulting dialog
|
await doneButton.click(); // also accept the resulting dialog
|
||||||
alice.log.done();
|
alice.log.done();
|
||||||
|
|
||||||
|
@ -44,6 +44,12 @@ module.exports = async function toastScenarios(alice, bob) {
|
||||||
await rejectToast(bob, "Notifications");
|
await rejectToast(bob, "Notifications");
|
||||||
bob.log.done();
|
bob.log.done();
|
||||||
|
|
||||||
|
bob.log.step(`accepts rebrand toast`);
|
||||||
|
await acceptToast(bob, "Riot is now Element!");
|
||||||
|
doneButton = await bob.query('.mx_Dialog_primary');
|
||||||
|
await doneButton.click(); // also accept the resulting dialog
|
||||||
|
bob.log.done();
|
||||||
|
|
||||||
bob.log.step(`reject analytics toast`);
|
bob.log.step(`reject analytics toast`);
|
||||||
await rejectToast(bob, "Help us improve Element!");
|
await rejectToast(bob, "Help us improve Element!");
|
||||||
bob.log.done();
|
bob.log.done();
|
||||||
|
|
Loading…
Reference in New Issue