Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorporate new toasts into end-to-end tests #4983

Merged
merged 2 commits into from Jul 15, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/end-to-end-tests/riot/config-template/config.json
Expand Up @@ -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",
Expand Down
8 changes: 7 additions & 1 deletion test/end-to-end-tests/src/scenarios/toast.js
Expand Up @@ -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`);
Expand Down