Skip to content

Commit

Permalink
Update maxDiffPixelRatio for toHaveScreenshot in playwright.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
hanayik committed Jul 30, 2024
1 parent ca9dd22 commit cef3cf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion playwright.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default defineConfig({
},

expect: {
toHaveScreenshot: { maxDiffPixelRatio: 0.01 }
toHaveScreenshot: { maxDiffPixelRatio: 0.05 } // bumped to 5% due to github actions rendering differences
},

snapshotPathTemplate: './playwright/e2e/__screenshots__/{testName}/{testName}-{projectName}{ext}',
Expand Down

0 comments on commit cef3cf7

Please sign in to comment.