From b8ed73a9ab084c26d070ec7d8449002fe2340bb7 Mon Sep 17 00:00:00 2001 From: Hubert Chathi Date: Thu, 5 Dec 2024 17:11:38 -0500 Subject: [PATCH] add delay in test to allow Alice to fetch Bob's device keys --- playwright/e2e/crypto/user-verification.spec.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/playwright/e2e/crypto/user-verification.spec.ts b/playwright/e2e/crypto/user-verification.spec.ts index 4c8d641e6f..c96bd5d5b6 100644 --- a/playwright/e2e/crypto/user-verification.spec.ts +++ b/playwright/e2e/crypto/user-verification.spec.ts @@ -48,6 +48,10 @@ test.describe("User verification", () => { }); } + // Wait a bit so that Alice can retrieve our device keys. + await new Promise((resolve) => { + setTimeout(resolve, 500); + }); return client.getCrypto().requestVerificationDM(aliceCredentials.userId, dmRoomId); }, { dmRoomId, aliceCredentials }, @@ -97,6 +101,10 @@ test.describe("User verification", () => { }); } + // Wait a bit so that Alice can retrieve our device keys. + await new Promise((resolve) => { + setTimeout(resolve, 500); + }); return client.getCrypto().requestVerificationDM(aliceCredentials.userId, dmRoomId); }, { dmRoomId, aliceCredentials },