Skip to content

Commit

Permalink
test: tweak maxDiffPixelRatio for CI on Ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
Epoxide committed Jul 29, 2024
1 parent 5d7fdc6 commit 8370e18
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/tests/tests/404.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ test('matches desktop snapshot', async ({ page }) => {
await expect(page).toHaveScreenshot(
'../snapshots/404.test.ts.matches-desktop-snapshot.png',
{
maxDiffPixelRatio: 0.01,
maxDiffPixelRatio: 0.02,
},
)
})
Expand All @@ -34,7 +34,7 @@ test('matches mobile snapshot', async ({ page }) => {
await expect(page).toHaveScreenshot(
'../snapshots/404.test.ts.matches-mobile-snapshot.png',
{
maxDiffPixelRatio: 0.01,
maxDiffPixelRatio: 0.02,
},
)
})
4 changes: 2 additions & 2 deletions packages/tests/tests/home.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ test('matches desktop snapshot', async ({ page }) => {
await expect(page).toHaveScreenshot(
'../snapshots/home.test.ts.matches-desktop-snapshot.png',
{
maxDiffPixelRatio: 0.01,
maxDiffPixelRatio: 0.02,
},
)
})
Expand All @@ -40,7 +40,7 @@ test('matches mobile snapshot', async ({ page }) => {
await expect(page).toHaveScreenshot(
'../snapshots/home.test.ts.matches-mobile-snapshot.png',
{
maxDiffPixelRatio: 0.01,
maxDiffPixelRatio: 0.02,
},
)
})

0 comments on commit 8370e18

Please sign in to comment.