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 dialogpull/21833/head
parent
d63a0c5aea
commit
e147cc9341
|
@ -34,8 +34,5 @@ module.exports = async function acceptInvite(session, name) {
|
|||
const acceptInvitationLink = await session.waitAndQuery(".mx_RoomPreviewBar_join_text a:first-child");
|
||||
await acceptInvitationLink.click();
|
||||
|
||||
// accept e2e warning dialog
|
||||
acceptDialogMaybe(session, "encryption");
|
||||
|
||||
session.log.done();
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue