From ebe8b259c7d3c9f6c4526e6aa7549afc8c08789e Mon Sep 17 00:00:00 2001 From: Florian Duros Date: Tue, 26 Nov 2024 14:50:14 +0100 Subject: [PATCH] Fix e2e test --- playwright/e2e/crypto/decryption-failure-messages.spec.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/playwright/e2e/crypto/decryption-failure-messages.spec.ts b/playwright/e2e/crypto/decryption-failure-messages.spec.ts index ce7ca34d8e..b90ce98ae2 100644 --- a/playwright/e2e/crypto/decryption-failure-messages.spec.ts +++ b/playwright/e2e/crypto/decryption-failure-messages.spec.ts @@ -67,6 +67,9 @@ test.describe("Cryptography", function () { await page.locator(".mx_AuthPage").getByRole("button", { name: "I'll verify later" }).click(); await app.viewRoomByName("Test room"); + // In this case, the call to cryptoApi.isEncryptionEnabledInRoom is taking a long time to resolve + await page.waitForTimeout(4000); + // There should be two historical events in the timeline const tiles = await page.locator(".mx_EventTile").all(); expect(tiles.length).toBeGreaterThanOrEqual(2);