diff --git a/playwright.config.ts b/playwright.config.ts index 10a2186..2d1915e 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -24,6 +24,14 @@ export default defineConfig({ }, // You can add Firefox/WebKit here later if you want cross-browser testing ], + + expect: { + // Configure global tolerance for visual regression tests + toHaveScreenshot: { + // Allows up to 2% of the pixels to be different before failing the test + maxDiffPixelRatio: 0.02 + } + }, /* Run your local dev server before starting the tests */ webServer: {