From a0f0cc549a9c04d71c66471f45e368d1839d70f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C5=ABdolfs=20O=C5=A1i=C5=86=C5=A1?= Date: Mon, 13 Feb 2023 14:22:15 +0100 Subject: [PATCH] Lower image diff threshold MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We want to catch smaller changes. The threshold was too high to catch the rounded corners change in a full-page screenshot. Signed-off-by: Rūdolfs Ošiņš --- playwright.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playwright.config.ts b/playwright.config.ts index b51284ff5..0f5c99dfd 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -45,7 +45,7 @@ const config: PlaywrightTestConfig = { expect: { timeout: 30_000, toHaveScreenshot: { - threshold: 0.1, + threshold: 0.01, scale: "device", animations: "disabled", },