Skip to content

Commit

Permalink
chore: relax snapshot comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
Benehiko committed Sep 26, 2023
1 parent d4a718e commit 29767f6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions playwright-ct.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@ export default defineConfig({
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: "html",
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
expect: {
/**
* Maximum time expect() should wait for the condition to be met.
* For example in `await expect(locator).toHaveText();`
*/
timeout: 5000,
toHaveScreenshot: {
maxDiffPixelRatio: 0.05,
},
},
use: {
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: "on-first-retry",
Expand Down

0 comments on commit 29767f6

Please sign in to comment.