From cabac4ef0ec03d029341df3ae98b8718acf96af5 Mon Sep 17 00:00:00 2001 From: Andy Balaam Date: Tue, 31 Mar 2026 11:49:57 +0100 Subject: [PATCH] Attempt to deflake the 'Verify this device' test by scrolling up (#32981) --- .../e2e/settings/encryption-user-tab/encryption-tab.spec.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/web/playwright/e2e/settings/encryption-user-tab/encryption-tab.spec.ts b/apps/web/playwright/e2e/settings/encryption-user-tab/encryption-tab.spec.ts index 409a379b80..a53a188d6b 100644 --- a/apps/web/playwright/e2e/settings/encryption-user-tab/encryption-tab.spec.ts +++ b/apps/web/playwright/e2e/settings/encryption-user-tab/encryption-tab.spec.ts @@ -47,6 +47,9 @@ test.describe("Encryption tab", () => { await util.verifyDevice(recoveryKey); + // Prevent flakiness by scrolling to top of the tab + await page.getByRole("heading", { name: "Key storage" }).scrollIntoViewIfNeeded(); + await expect(content).toMatchScreenshot("default-tab.png", { mask: [content.getByTestId("deviceId"), content.getByTestId("sessionKey")], });