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:
@@ -34,8 +34,5 @@ module.exports = async function acceptInvite(session, name) {
|
|||||||
const acceptInvitationLink = await session.waitAndQuery(".mx_RoomPreviewBar_join_text a:first-child");
|
const acceptInvitationLink = await session.waitAndQuery(".mx_RoomPreviewBar_join_text a:first-child");
|
||||||
await acceptInvitationLink.click();
|
await acceptInvitationLink.click();
|
||||||
|
|
||||||
// accept e2e warning dialog
|
|
||||||
acceptDialogMaybe(session, "encryption");
|
|
||||||
|
|
||||||
session.log.done();
|
session.log.done();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ async function acceptDialog(session, expectedTitle) {
|
|||||||
async function acceptDialogMaybe(session, expectedTitle) {
|
async function acceptDialogMaybe(session, expectedTitle) {
|
||||||
let primaryButton = null;
|
let primaryButton = null;
|
||||||
try {
|
try {
|
||||||
primaryButton = await session.waitAndQuery(".mx_Dialog [role=dialog] .mx_Dialog_primary");
|
primaryButton = await session.waitAndQuery(".mx_Dialog .mx_Dialog_primary", 50);
|
||||||
} catch(err) {
|
} catch(err) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -44,7 +44,7 @@ async function acceptDialogMaybe(session, expectedTitle) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
assertDialog,
|
||||||
acceptDialog,
|
acceptDialog,
|
||||||
acceptDialogMaybe,
|
acceptDialogMaybe,
|
||||||
assertDialog,
|
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user