From 86cb3cf93f99ba13696f83f1ab4a6eba63658f2d Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Wed, 15 Jul 2020 04:13:33 -0600 Subject: [PATCH] Incorporate new toasts into end-to-end tests --- test/end-to-end-tests/src/scenarios/toast.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/end-to-end-tests/src/scenarios/toast.js b/test/end-to-end-tests/src/scenarios/toast.js index 1206ef40b0..0673616121 100644 --- a/test/end-to-end-tests/src/scenarios/toast.js +++ b/test/end-to-end-tests/src/scenarios/toast.js @@ -24,8 +24,14 @@ module.exports = async function toastScenarios(alice, bob) { await rejectToast(alice, "Notifications"); alice.log.done(); + alice.log.step(`accepts rebrand toast`); + await acceptToast(alice, "Riot is now Element!"); + const doneButton = await alice.query('.mx_Dialog_primary'); + await doneButton.click(); // also accept the resulting dialog + alice.log.done(); + alice.log.step(`accepts analytics toast`); - await acceptToast(alice, "Help us improve Riot"); + await acceptToast(alice, "Help us improve Element"); alice.log.done(); alice.log.step(`checks no remaining toasts`);