diff --git a/e2e/setup/image.ts b/e2e/setup/image.ts index ab802d037..352e8a5c4 100644 --- a/e2e/setup/image.ts +++ b/e2e/setup/image.ts @@ -1,4 +1,4 @@ -import 'expect-puppeteer'; +// import 'expect-puppeteer'; import {toMatchImageSnapshot} from 'jest-image-snapshot'; expect.extend({toMatchImageSnapshot}); diff --git a/e2e/setup/scenarios.screenshot.ts b/e2e/setup/scenarios.screenshot.ts index 1800329c7..3c42757a8 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: 1, failureThresholdType: 'percent', ...DIFF_CONFIG}); + expect(image).toMatchImageSnapshot({failureThreshold: 0.25, failureThresholdType: 'percent', ...DIFF_CONFIG}); });