Merge pull request #4983 from matrix-org/travis/e2e-tests

Incorporate new toasts into end-to-end tests
pull/21833/head
Travis Ralston 2020-07-15 04:22:37 -06:00 committed by GitHub
commit c5cba6d02a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View File

@ -5,7 +5,7 @@
"disable_guests": false,
"disable_login_language_selector": false,
"disable_3pid_login": false,
"brand": "Riot",
"brand": "Element",
"integrations_ui_url": "https://scalar.vector.im/",
"integrations_rest_url": "https://scalar.vector.im/api",
"bug_report_endpoint_url": "https://riot.im/bugreports/submit",

View File

@ -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`);