diff --git a/playwright.config.js b/playwright.config.js index 5a8fb38..d7c39b3 100644 --- a/playwright.config.js +++ b/playwright.config.js @@ -19,13 +19,17 @@ const config = { * For example in `await expect(locator).toHaveText();` */ timeout: 5000, + toMatchSnapshot: { + maxDiffPixelRatio: 0.01, + }, + maxDiffPixels: 3, }, /* Run tests in files in parallel */ fullyParallel: true, /* Fail the build on CI if you accidentally left test.only in the source code. */ forbidOnly: !!process.env.CI, /* Retry on CI only */ - retries: process.env.CI ? 1 : 2, + retries: process.env.CI ? 2 : 0, /* Opt out of parallel tests on CI. */ workers: process.env.CI ? 4 : 3, /* Reporter to use. See https://playwright.dev/docs/test-reporters */ diff --git a/tests/components/main-components/context-menu-options.spec.js-snapshots/darwin/chrome/component-annotation-discard.png b/tests/components/main-components/context-menu-options.spec.js-snapshots/darwin/chrome/component-annotation-discard.png index ff4f842..afc943b 100644 Binary files a/tests/components/main-components/context-menu-options.spec.js-snapshots/darwin/chrome/component-annotation-discard.png and b/tests/components/main-components/context-menu-options.spec.js-snapshots/darwin/chrome/component-annotation-discard.png differ diff --git a/tests/components/main-components/context-menu-options.spec.js-snapshots/darwin/firefox/component-annotation-discard.png b/tests/components/main-components/context-menu-options.spec.js-snapshots/darwin/firefox/component-annotation-discard.png index 97bacfa..39e482d 100644 Binary files a/tests/components/main-components/context-menu-options.spec.js-snapshots/darwin/firefox/component-annotation-discard.png and b/tests/components/main-components/context-menu-options.spec.js-snapshots/darwin/firefox/component-annotation-discard.png differ