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")], });