Attempt to deflake the 'Verify this device' test by scrolling up (#32981)
This commit is contained in:
@@ -47,6 +47,9 @@ test.describe("Encryption tab", () => {
|
|||||||
|
|
||||||
await util.verifyDevice(recoveryKey);
|
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", {
|
await expect(content).toMatchScreenshot("default-tab.png", {
|
||||||
mask: [content.getByTestId("deviceId"), content.getByTestId("sessionKey")],
|
mask: [content.getByTestId("deviceId"), content.getByTestId("sessionKey")],
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user