Attempt to deflake the 'Verify this device' test by scrolling up (#32981)

This commit is contained in:
Andy Balaam
2026-03-31 11:49:57 +01:00
committed by GitHub
parent 0550947343
commit cabac4ef0e
@@ -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")],
});