Skip to content

Commit

Permalink
Increase maxDiffPixelRatio for WC 7.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardoumpierre committed Feb 3, 2025
1 parent e5d366d commit 6f5afaf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/e2e-pw/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ export default defineConfig( {
},
timeout: 120 * 1000, // Default is 30s, somteimes it is not enough for local tests due to long setup.
expect: {
toHaveScreenshot: { maxDiffPixelRatio: 0.025 },
toHaveScreenshot: {
maxDiffPixelRatio:
process.env.E2E_WC_VERSION === '7.7.0' ? 0.035 : 0.025,
},
//=* Increase expect timeout to 10 seconds. See https://playwright.dev/docs/test-timeouts#set-expect-timeout-in-the-config.*/
timeout: 20 * 1000,
},
Expand Down

0 comments on commit 6f5afaf

Please sign in to comment.