mirror of
https://github.com/vector-im/element-web.git
synced 2025-09-01 03:41:31 +02:00
debug
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
91811581bc
commit
f3dfdbe746
@ -30,6 +30,9 @@ module.exports = async function toastScenarios(alice, bob) {
|
|||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
try {
|
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');
|
const toastDismissButton = await alice.query('.mx_Toast_buttons .mx_AccessibleButton_kind_danger');
|
||||||
await toastDismissButton.click();
|
await toastDismissButton.click();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
@ -53,6 +56,9 @@ module.exports = async function toastScenarios(alice, bob) {
|
|||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
try {
|
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');
|
const toastDismissButton = await bob.query('.mx_Toast_buttons .mx_AccessibleButton_kind_danger');
|
||||||
await toastDismissButton.click();
|
await toastDismissButton.click();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user