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 },