1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-11 20:22:36 +03:00

wait for opponent label to appear in sas dialog

This commit is contained in:
Bruno Windels
2019-04-16 12:07:59 +02:00
parent 20c3023b94
commit ee46c2b030

View File

@@ -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