From a65d6af8c5ae72ba691756e88adb0487cfed2e72 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 23 Aug 2018 10:04:06 +0200 Subject: [PATCH] encryption dialogs dont always appear coming back from settings... weird --- src/scenario.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/scenario.js b/src/scenario.js index d859b74781..394e89f7cd 100644 --- a/src/scenario.js +++ b/src/scenario.js @@ -15,7 +15,7 @@ limitations under the License. */ -const {acceptDialog} = require('./tests/dialog'); +const {acceptDialogMaybe} = require('./tests/dialog'); const signup = require('./tests/signup'); const join = require('./tests/join'); const sendMessage = require('./tests/send-message'); @@ -68,12 +68,12 @@ async function createE2ERoomAndTalk(alice, bob) { // wait some time for the encryption warning dialog // to appear after closing the settings await bob.delay(1000); - await acceptDialog(bob, "encryption"); + await acceptDialogMaybe(bob, "encryption"); const aliceDevice = await getE2EDeviceFromSettings(alice); // wait some time for the encryption warning dialog // to appear after closing the settings await alice.delay(1000); - await acceptDialog(alice, "encryption"); + await acceptDialogMaybe(alice, "encryption"); await verifyDeviceForUser(bob, "alice", aliceDevice); await verifyDeviceForUser(alice, "bob", bobDevice); const aliceMessage = "Guess what I just heard?!"