diff --git a/.github/workflows/playwright-update-snapshots.yml b/.github/workflows/playwright-update-snapshots.yml index aebdbfc3..cadc24a5 100644 --- a/.github/workflows/playwright-update-snapshots.yml +++ b/.github/workflows/playwright-update-snapshots.yml @@ -34,7 +34,7 @@ jobs: run: npx playwright install --with-deps - name: Update snapshots - run: npm test -- --update-snapshots + run: npm test -- --update-snapshots=all env: BUILD_TARGET: release diff --git a/justfile b/justfile index 9e6a65c4..8187affa 100644 --- a/justfile +++ b/justfile @@ -77,7 +77,7 @@ front-test: # update images snapshots front-test-update-snapshot: - cd tests/e2e && npm test -- --update-snapshots + cd tests/e2e && npm test -- --update-snapshots=all # Hurl API functional tests (starts postgres + server, tears down after) api-test: diff --git a/tests/e2e/playwright.config.ts b/tests/e2e/playwright.config.ts index b1486f14..e2e35296 100644 --- a/tests/e2e/playwright.config.ts +++ b/tests/e2e/playwright.config.ts @@ -43,7 +43,7 @@ export default defineConfig({ }, expect: { - toHaveScreenshot: { maxDiffPixelRatio: 0.02 }, + toHaveScreenshot: { maxDiffPixelRatio: 0.01 }, }, projects: [ diff --git a/tests/e2e/scenarios/01-home-and-login.spec.ts-snapshots/home-files-chromium-darwin.png b/tests/e2e/scenarios/01-home-and-login.spec.ts-snapshots/home-files-chromium-darwin.png index 72adfe0a..b978edf6 100644 Binary files a/tests/e2e/scenarios/01-home-and-login.spec.ts-snapshots/home-files-chromium-darwin.png and b/tests/e2e/scenarios/01-home-and-login.spec.ts-snapshots/home-files-chromium-darwin.png differ diff --git a/tests/e2e/scenarios/01-home-and-login.spec.ts-snapshots/home-files-darktheme-chromium-darwin.png b/tests/e2e/scenarios/01-home-and-login.spec.ts-snapshots/home-files-darktheme-chromium-darwin.png index 9bbee12a..6fcc3f0c 100644 Binary files a/tests/e2e/scenarios/01-home-and-login.spec.ts-snapshots/home-files-darktheme-chromium-darwin.png and b/tests/e2e/scenarios/01-home-and-login.spec.ts-snapshots/home-files-darktheme-chromium-darwin.png differ diff --git a/tests/e2e/scenarios/01-home-and-login.spec.ts-snapshots/home-files-lightheme-chromium-darwin.png b/tests/e2e/scenarios/01-home-and-login.spec.ts-snapshots/home-files-lightheme-chromium-darwin.png index bfbb88b3..b281acd1 100644 Binary files a/tests/e2e/scenarios/01-home-and-login.spec.ts-snapshots/home-files-lightheme-chromium-darwin.png and b/tests/e2e/scenarios/01-home-and-login.spec.ts-snapshots/home-files-lightheme-chromium-darwin.png differ diff --git a/tests/e2e/scenarios/02-folder-management.spec.ts-snapshots/dropped-files-chromium-darwin.png b/tests/e2e/scenarios/02-folder-management.spec.ts-snapshots/dropped-files-chromium-darwin.png index 76af14f6..b00b144c 100644 Binary files a/tests/e2e/scenarios/02-folder-management.spec.ts-snapshots/dropped-files-chromium-darwin.png and b/tests/e2e/scenarios/02-folder-management.spec.ts-snapshots/dropped-files-chromium-darwin.png differ diff --git a/tests/e2e/scenarios/02-folder-management.spec.ts-snapshots/files-with-thumbnails-chromium-darwin.png b/tests/e2e/scenarios/02-folder-management.spec.ts-snapshots/files-with-thumbnails-chromium-darwin.png index 47d4d558..19783825 100644 Binary files a/tests/e2e/scenarios/02-folder-management.spec.ts-snapshots/files-with-thumbnails-chromium-darwin.png and b/tests/e2e/scenarios/02-folder-management.spec.ts-snapshots/files-with-thumbnails-chromium-darwin.png differ diff --git a/tests/e2e/scenarios/02-folder-management.spec.ts-snapshots/folder-created-chromium-darwin.png b/tests/e2e/scenarios/02-folder-management.spec.ts-snapshots/folder-created-chromium-darwin.png index d7ecf084..26ebf3cc 100644 Binary files a/tests/e2e/scenarios/02-folder-management.spec.ts-snapshots/folder-created-chromium-darwin.png and b/tests/e2e/scenarios/02-folder-management.spec.ts-snapshots/folder-created-chromium-darwin.png differ diff --git a/tests/e2e/scenarios/02-folder-management.spec.ts-snapshots/folder-renamed-chromium-darwin.png b/tests/e2e/scenarios/02-folder-management.spec.ts-snapshots/folder-renamed-chromium-darwin.png index af16317d..0c12798d 100644 Binary files a/tests/e2e/scenarios/02-folder-management.spec.ts-snapshots/folder-renamed-chromium-darwin.png and b/tests/e2e/scenarios/02-folder-management.spec.ts-snapshots/folder-renamed-chromium-darwin.png differ