From 4fe53e4ad02431e96d31aa120f78ff1f5a89c228 Mon Sep 17 00:00:00 2001 From: Alan Bridgeman Date: Wed, 13 May 2026 11:42:23 -0500 Subject: [PATCH] Added tolerance for screenshot regression tests in the hope it fixes CI/CD issue --- playwright.config.ts | 8 ++++++++ 1 file changed, 8 insertions(+) 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: {