Fix e2e test

This commit is contained in:
Florian Duros 2024-11-26 14:50:14 +01:00
parent 84ebdc59c3
commit ebe8b259c7
No known key found for this signature in database
GPG key ID: A5BBB4041B493F15

View file

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