mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-31 19:31:11 +02:00
wait for opponent label to appear in sas dialog
This commit is contained in:
parent
20c3023b94
commit
ee46c2b030
@ -53,7 +53,7 @@ module.exports.startSasVerifcation = async function(session, name) {
|
|||||||
|
|
||||||
module.exports.acceptSasVerification = async function(session, name) {
|
module.exports.acceptSasVerification = async function(session, name) {
|
||||||
await assertDialog(session, "Incoming Verification Request");
|
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);
|
const opponentLabel = await session.innerText(opponentLabelElement);
|
||||||
assert(opponentLabel, name);
|
assert(opponentLabel, name);
|
||||||
// click "Continue" button
|
// click "Continue" button
|
||||||
|
Loading…
x
Reference in New Issue
Block a user