mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 19:56:47 +03:00
wait for opponent label to appear in sas dialog
This commit is contained in:
parent
20c3023b94
commit
ee46c2b030
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ module.exports.startSasVerifcation = async function(session, name) {
|
|||
|
||||
module.exports.acceptSasVerification = async function(session, name) {
|
||||
await assertDialog(session, "Incoming Verification Request");
|
||||
const opponentLabelElement = await session.query(".mx_IncomingSasDialog_opponentProfile h2");
|
||||
const opponentLabelElement = await session.waitAndQuery(".mx_IncomingSasDialog_opponentProfile h2");
|
||||
const opponentLabel = await session.innerText(opponentLabelElement);
|
||||
assert(opponentLabel, name);
|
||||
// click "Continue" button
|
||||
|
|
Loading…
Reference in a new issue