You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-11 20:22:36 +03:00
this dialog isn't shown anymore and this was accepting the SAS dialog
also lower timeout so we don't wait 5s if there is no dialog
This commit is contained in:
@@ -32,7 +32,7 @@ async function acceptDialog(session, expectedTitle) {
|
||||
async function acceptDialogMaybe(session, expectedTitle) {
|
||||
let primaryButton = null;
|
||||
try {
|
||||
primaryButton = await session.waitAndQuery(".mx_Dialog [role=dialog] .mx_Dialog_primary");
|
||||
primaryButton = await session.waitAndQuery(".mx_Dialog .mx_Dialog_primary", 50);
|
||||
} catch(err) {
|
||||
return false;
|
||||
}
|
||||
@@ -44,7 +44,7 @@ async function acceptDialogMaybe(session, expectedTitle) {
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
assertDialog,
|
||||
acceptDialog,
|
||||
acceptDialogMaybe,
|
||||
assertDialog,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user