1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-08-07 21:23:00 +03:00
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski
2020-05-27 14:36:44 +01:00
parent 91811581bc
commit f3dfdbe746

View File

@@ -30,6 +30,9 @@ module.exports = async function toastScenarios(alice, bob) {
while (true) {
try {
const h2Element = await alice.query('.mx_Toast_title h2');
const toastTitle = await alice.innerText(h2Element);
console.log("DEBUG closing", toastTitle);
const toastDismissButton = await alice.query('.mx_Toast_buttons .mx_AccessibleButton_kind_danger');
await toastDismissButton.click();
} catch (e) {
@@ -53,6 +56,9 @@ module.exports = async function toastScenarios(alice, bob) {
while (true) {
try {
const h2Element = await bob.query('.mx_Toast_title h2');
const toastTitle = await bob.innerText(h2Element);
console.log("DEBUG closing", toastTitle);
const toastDismissButton = await bob.query('.mx_Toast_buttons .mx_AccessibleButton_kind_danger');
await toastDismissButton.click();
} catch (e) {