Skip to content

Commit cabac4e

Browse files
authored
Attempt to deflake the 'Verify this device' test by scrolling up (#32981)
1 parent 0550947 commit cabac4e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

apps/web/playwright/e2e/settings/encryption-user-tab/encryption-tab.spec.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ test.describe("Encryption tab", () => {
4747

4848
await util.verifyDevice(recoveryKey);
4949

50+
// Prevent flakiness by scrolling to top of the tab
51+
await page.getByRole("heading", { name: "Key storage" }).scrollIntoViewIfNeeded();
52+
5053
await expect(content).toMatchScreenshot("default-tab.png", {
5154
mask: [content.getByTestId("deviceId"), content.getByTestId("sessionKey")],
5255
});

0 commit comments

Comments
 (0)