Skip to content

Commit

Permalink
Account for pixel difference with ratio
Browse files Browse the repository at this point in the history
  • Loading branch information
arnautov-anton committed Sep 15, 2023
1 parent 5829d8e commit 8a18956
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sample-apps/react/egress-composite/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ export default defineConfig({
reporter: 'list',
// custom path to omit architecture/system from file name (darwin-amd64/darwin-arm64/linux-amd64...)
snapshotPathTemplate: './tests/__screenshots__/{testFilePath}/{arg}{ext}',
expect: {
toHaveScreenshot: {
// to account for CI headless
maxDiffPixelRatio: 0.05,
},
},
use: {
headless: !!process.env.CI,
trace: 'on-first-retry',
Expand Down

0 comments on commit 8a18956

Please sign in to comment.