Skip to content

Commit

Permalink
Merge pull request #3502 from ag-grid/playwright-threshold
Browse files Browse the repository at this point in the history
Reduce pixel color diff threshold from 0.2 on playwright config
  • Loading branch information
alantreadway authored Feb 7, 2025
2 parents af8190c + 0d5261f commit 1e46e30
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/ag-charts-website/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,16 @@ export default defineConfig({
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: 'on-first-retry',
},
expect: {
toMatchSnapshot: {
maxDiffPixels: 0,
threshold: 0.01,
},
toHaveScreenshot: {
maxDiffPixels: 0,
threshold: 0.01,
},
},

/* Configure projects for major browsers */
projects: [
Expand Down
10 changes: 10 additions & 0 deletions tests/shared/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,16 @@ export default defineConfig({
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: 'on-first-retry',
},
expect: {
toMatchSnapshot: {
maxDiffPixels: 0,
threshold: 0,
},
toHaveScreenshot: {
maxDiffPixels: 0,
threshold: 0,
},
},

/* Configure projects for major browsers */
projects: [
Expand Down

0 comments on commit 1e46e30

Please sign in to comment.