diff --git a/e2e/setup/scenarios.screenshot.ts b/e2e/setup/scenarios.screenshot.ts index 931325f31..1800329c7 100644 --- a/e2e/setup/scenarios.screenshot.ts +++ b/e2e/setup/scenarios.screenshot.ts @@ -23,5 +23,5 @@ cucumber.defineRule('check if the screenshot is exactly equal to the snapshoted cucumber.defineRule('check if the screenshot is equal to the snapshoted version', (world: TestEnv) => { if (!world.screenshots.length) throw new Error('E2E: there is no any screenshot, make sure you have "Take a screenshot" before'); const image = world.screenshots.pop(); - expect(image).toMatchImageSnapshot({failureThreshold: 5, failureThresholdType: 'pixel', ...DIFF_CONFIG}); + expect(image).toMatchImageSnapshot({failureThreshold: 1, failureThresholdType: 'percent', ...DIFF_CONFIG}); });