Skip to content

Commit f7f9ddc

Browse files
Pixel ratio.
1 parent c15d2ee commit f7f9ddc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tools/e2e/tests/login-start.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ test('has title', async ({ page }) => {
1616
});
1717

1818
test('visual test', async ({ page }) => {
19-
await expect(page).toHaveScreenshot();
19+
await expect(page).toHaveScreenshot({ maxDiffPixelRatio: 0.05 });
2020
});

tools/e2e/tests/login.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ test('login', async ({ page, loginPage }) => {
2525
test('visual test', async ({ loginPage }) => {
2626
const popup = await loginPage.openPopup();
2727

28-
await expect(popup.root).toHaveScreenshot({ fullPage: true });
28+
await expect(popup.root).toHaveScreenshot({ maxDiffPixelRatio: 0.05, fullPage: true });
2929
});

0 commit comments

Comments
 (0)