diff --git a/frontend/test/playwright/playwright.config.ts b/frontend/test/playwright/playwright.config.ts index b7f9090c87e..9d6f0735d89 100644 --- a/frontend/test/playwright/playwright.config.ts +++ b/frontend/test/playwright/playwright.config.ts @@ -66,6 +66,11 @@ const config: PlaywrightTestConfig = { * to avoid the test also becoming a load test. */ workers: UPDATE_TAPES === "true" || baseURL !== localBaseURL ? 1 : undefined, + expect: { + toMatchSnapshot: { + threshold: 0.1, + }, + }, } export default config diff --git a/frontend/test/playwright/visual-regression/components/filters.spec.ts-snapshots/filters-sidebar-checked-ltr-lg-light-linux.png b/frontend/test/playwright/visual-regression/components/filters.spec.ts-snapshots/filters-sidebar-checked-ltr-lg-light-linux.png index a8c5efe8192..42849bef6af 100644 Binary files a/frontend/test/playwright/visual-regression/components/filters.spec.ts-snapshots/filters-sidebar-checked-ltr-lg-light-linux.png and b/frontend/test/playwright/visual-regression/components/filters.spec.ts-snapshots/filters-sidebar-checked-ltr-lg-light-linux.png differ diff --git a/frontend/test/playwright/visual-regression/components/filters.spec.ts-snapshots/filters-sidebar-checked-rtl-lg-light-linux.png b/frontend/test/playwright/visual-regression/components/filters.spec.ts-snapshots/filters-sidebar-checked-rtl-lg-light-linux.png index 2f89977b1ca..98ee4194159 100644 Binary files a/frontend/test/playwright/visual-regression/components/filters.spec.ts-snapshots/filters-sidebar-checked-rtl-lg-light-linux.png and b/frontend/test/playwright/visual-regression/components/filters.spec.ts-snapshots/filters-sidebar-checked-rtl-lg-light-linux.png differ diff --git a/frontend/test/playwright/visual-regression/components/filters.spec.ts-snapshots/filters-sidebar-ltr-lg-light-linux.png b/frontend/test/playwright/visual-regression/components/filters.spec.ts-snapshots/filters-sidebar-ltr-lg-light-linux.png index 2fdf895ca87..50232aed32c 100644 Binary files a/frontend/test/playwright/visual-regression/components/filters.spec.ts-snapshots/filters-sidebar-ltr-lg-light-linux.png and b/frontend/test/playwright/visual-regression/components/filters.spec.ts-snapshots/filters-sidebar-ltr-lg-light-linux.png differ diff --git a/frontend/test/playwright/visual-regression/components/filters.spec.ts-snapshots/filters-sidebar-rtl-lg-light-linux.png b/frontend/test/playwright/visual-regression/components/filters.spec.ts-snapshots/filters-sidebar-rtl-lg-light-linux.png index debd59b5b79..53e12188832 100644 Binary files a/frontend/test/playwright/visual-regression/components/filters.spec.ts-snapshots/filters-sidebar-rtl-lg-light-linux.png and b/frontend/test/playwright/visual-regression/components/filters.spec.ts-snapshots/filters-sidebar-rtl-lg-light-linux.png differ diff --git a/frontend/test/playwright/visual-regression/components/global-audio-player.spec.ts-snapshots/global-audio-player-on-search-ltr-xs-light-linux.png b/frontend/test/playwright/visual-regression/components/global-audio-player.spec.ts-snapshots/global-audio-player-on-search-ltr-xs-light-linux.png index 6069e8fda7e..f0f4b0a3745 100644 Binary files a/frontend/test/playwright/visual-regression/components/global-audio-player.spec.ts-snapshots/global-audio-player-on-search-ltr-xs-light-linux.png and b/frontend/test/playwright/visual-regression/components/global-audio-player.spec.ts-snapshots/global-audio-player-on-search-ltr-xs-light-linux.png differ diff --git a/frontend/test/playwright/visual-regression/components/global-audio-player.spec.ts-snapshots/global-audio-player-on-search-rtl-xs-light-linux.png b/frontend/test/playwright/visual-regression/components/global-audio-player.spec.ts-snapshots/global-audio-player-on-search-rtl-xs-light-linux.png index 9bad6e17203..56114000245 100644 Binary files a/frontend/test/playwright/visual-regression/components/global-audio-player.spec.ts-snapshots/global-audio-player-on-search-rtl-xs-light-linux.png and b/frontend/test/playwright/visual-regression/components/global-audio-player.spec.ts-snapshots/global-audio-player-on-search-rtl-xs-light-linux.png differ diff --git a/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-ltr-2xl-dark-linux.png b/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-ltr-2xl-dark-linux.png index 8e40558e443..a557366e36d 100644 Binary files a/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-ltr-2xl-dark-linux.png and b/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-ltr-2xl-dark-linux.png differ diff --git a/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-ltr-lg-dark-linux.png b/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-ltr-lg-dark-linux.png index 3ea77409ce4..b8eb8728f82 100644 Binary files a/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-ltr-lg-dark-linux.png and b/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-ltr-lg-dark-linux.png differ diff --git a/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-ltr-xl-dark-linux.png b/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-ltr-xl-dark-linux.png index 98ee62ab9fd..bc48fe4e00b 100644 Binary files a/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-ltr-xl-dark-linux.png and b/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-ltr-xl-dark-linux.png differ diff --git a/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-rtl-2xl-dark-linux.png b/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-rtl-2xl-dark-linux.png index 3393992fac5..4aa6999ba7c 100644 Binary files a/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-rtl-2xl-dark-linux.png and b/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-rtl-2xl-dark-linux.png differ diff --git a/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-rtl-lg-dark-linux.png b/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-rtl-lg-dark-linux.png index 1da8e37f3eb..0c6aab4268e 100644 Binary files a/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-rtl-lg-dark-linux.png and b/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-rtl-lg-dark-linux.png differ diff --git a/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-rtl-xl-dark-linux.png b/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-rtl-xl-dark-linux.png index a053a1e0b59..e67ebda79f4 100644 Binary files a/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-rtl-xl-dark-linux.png and b/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-rtl-xl-dark-linux.png differ diff --git a/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-ltr-2xl-dark-linux.png b/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-ltr-2xl-dark-linux.png index 2b3a01d9824..b2dcdcc9fee 100644 Binary files a/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-ltr-2xl-dark-linux.png and b/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-ltr-2xl-dark-linux.png differ diff --git a/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-ltr-lg-dark-linux.png b/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-ltr-lg-dark-linux.png index 1a40e3e2c20..e6cb3ec8477 100644 Binary files a/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-ltr-lg-dark-linux.png and b/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-ltr-lg-dark-linux.png differ diff --git a/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-ltr-xl-dark-linux.png b/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-ltr-xl-dark-linux.png index 4fdf2086afb..4b14d213161 100644 Binary files a/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-ltr-xl-dark-linux.png and b/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-ltr-xl-dark-linux.png differ diff --git a/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-rtl-2xl-dark-linux.png b/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-rtl-2xl-dark-linux.png index 109f977028b..40fd6d47a73 100644 Binary files a/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-rtl-2xl-dark-linux.png and b/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-rtl-2xl-dark-linux.png differ diff --git a/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-rtl-lg-dark-linux.png b/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-rtl-lg-dark-linux.png index 02b4a75b4fc..dff904a8524 100644 Binary files a/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-rtl-lg-dark-linux.png and b/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-rtl-lg-dark-linux.png differ diff --git a/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-rtl-xl-dark-linux.png b/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-rtl-xl-dark-linux.png index f837aa2a5b8..8ac217462ba 100644 Binary files a/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-rtl-xl-dark-linux.png and b/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-rtl-xl-dark-linux.png differ diff --git a/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-ltr-2xl-dark-linux.png b/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-ltr-2xl-dark-linux.png index 690e82daac6..d44830736c4 100644 Binary files a/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-ltr-2xl-dark-linux.png and b/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-ltr-2xl-dark-linux.png differ diff --git a/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-ltr-lg-dark-linux.png b/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-ltr-lg-dark-linux.png index 3e5f3603220..0d05600e3ff 100644 Binary files a/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-ltr-lg-dark-linux.png and b/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-ltr-lg-dark-linux.png differ diff --git a/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-ltr-xl-dark-linux.png b/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-ltr-xl-dark-linux.png index 5aa96bf034f..36c7ddaa9e5 100644 Binary files a/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-ltr-xl-dark-linux.png and b/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-ltr-xl-dark-linux.png differ diff --git a/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-rtl-2xl-dark-linux.png b/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-rtl-2xl-dark-linux.png index 58ed6a72e64..aa724cecf54 100644 Binary files a/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-rtl-2xl-dark-linux.png and b/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-rtl-2xl-dark-linux.png differ diff --git a/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-rtl-lg-dark-linux.png b/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-rtl-lg-dark-linux.png index 30a96b2663b..3b4269692e1 100644 Binary files a/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-rtl-lg-dark-linux.png and b/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-rtl-lg-dark-linux.png differ diff --git a/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-rtl-xl-dark-linux.png b/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-rtl-xl-dark-linux.png index 8db06a6c396..cda9540515e 100644 Binary files a/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-rtl-xl-dark-linux.png and b/frontend/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-rtl-xl-dark-linux.png differ diff --git a/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-audio-no-results-ltr-xl-dark-linux.png b/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-audio-no-results-ltr-xl-dark-linux.png index d80c937184e..c6435f31e07 100644 Binary files a/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-audio-no-results-ltr-xl-dark-linux.png and b/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-audio-no-results-ltr-xl-dark-linux.png differ diff --git a/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-audio-no-results-rtl-xl-dark-linux.png b/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-audio-no-results-rtl-xl-dark-linux.png index 5b12a94ce07..ead562316a5 100644 Binary files a/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-audio-no-results-rtl-xl-dark-linux.png and b/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-audio-no-results-rtl-xl-dark-linux.png differ diff --git a/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-image-no-results-ltr-xl-dark-linux.png b/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-image-no-results-ltr-xl-dark-linux.png index 852561f7373..370726cda1b 100644 Binary files a/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-image-no-results-ltr-xl-dark-linux.png and b/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-image-no-results-ltr-xl-dark-linux.png differ diff --git a/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-image-no-results-rtl-xl-dark-linux.png b/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-image-no-results-rtl-xl-dark-linux.png index 518b8aba135..69836c479aa 100644 Binary files a/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-image-no-results-rtl-xl-dark-linux.png and b/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-image-no-results-rtl-xl-dark-linux.png differ diff --git a/frontend/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-with-external-sources-open-ltr-md-light-linux.png b/frontend/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-with-external-sources-open-ltr-md-light-linux.png index a602c1b6e53..57d88cc3f23 100644 Binary files a/frontend/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-with-external-sources-open-ltr-md-light-linux.png and b/frontend/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-with-external-sources-open-ltr-md-light-linux.png differ diff --git a/frontend/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-with-external-sources-open-ltr-sm-light-linux.png b/frontend/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-with-external-sources-open-ltr-sm-light-linux.png index 2abfad76d5f..2fe4f06f167 100644 Binary files a/frontend/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-with-external-sources-open-ltr-sm-light-linux.png and b/frontend/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-with-external-sources-open-ltr-sm-light-linux.png differ diff --git a/frontend/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-with-external-sources-open-rtl-md-light-linux.png b/frontend/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-with-external-sources-open-rtl-md-light-linux.png index f2fbe5e9e48..f8f85f2f0c8 100644 Binary files a/frontend/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-with-external-sources-open-rtl-md-light-linux.png and b/frontend/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-with-external-sources-open-rtl-md-light-linux.png differ diff --git a/frontend/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-with-external-sources-open-rtl-sm-light-linux.png b/frontend/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-with-external-sources-open-rtl-sm-light-linux.png index bb456682abe..9a9355da9dd 100644 Binary files a/frontend/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-with-external-sources-open-rtl-sm-light-linux.png and b/frontend/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-with-external-sources-open-rtl-sm-light-linux.png differ diff --git a/frontend/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-with-external-sources-open-rtl-xs-light-linux.png b/frontend/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-with-external-sources-open-rtl-xs-light-linux.png index f09143e1132..23f1aa421e2 100644 Binary files a/frontend/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-with-external-sources-open-rtl-xs-light-linux.png and b/frontend/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-with-external-sources-open-rtl-xs-light-linux.png differ diff --git a/frontend/test/playwright/visual-regression/pages/pages.spec.ts b/frontend/test/playwright/visual-regression/pages/pages.spec.ts index 47ad69bb74a..4242618636e 100644 --- a/frontend/test/playwright/visual-regression/pages/pages.spec.ts +++ b/frontend/test/playwright/visual-regression/pages/pages.spec.ts @@ -44,7 +44,6 @@ for (const contentPage of contentPages) { await expectSnapshot(page, contentPage, page, { dir, screenshotOptions: { fullPage: true }, - snapshotOptions: { maxDiffPixelRatio: 0.01 }, }) }) }) @@ -100,8 +99,7 @@ test.describe("layout color is set correctly", () => { await page.mouse.move(100, 100) expect(await page.screenshot({ fullPage: true })).toMatchSnapshot( - "about-ltr-lg-light.png", - { maxDiffPixelRatio: 0.01 } + "about-ltr-lg-light.png" ) }) }) diff --git a/frontend/test/playwright/visual-regression/pages/search-with-banners.spec.ts-snapshots/page-with-all-banners-2xl-dark-linux.png b/frontend/test/playwright/visual-regression/pages/search-with-banners.spec.ts-snapshots/page-with-all-banners-2xl-dark-linux.png index 1fe7200027b..322d5923348 100644 Binary files a/frontend/test/playwright/visual-regression/pages/search-with-banners.spec.ts-snapshots/page-with-all-banners-2xl-dark-linux.png and b/frontend/test/playwright/visual-regression/pages/search-with-banners.spec.ts-snapshots/page-with-all-banners-2xl-dark-linux.png differ diff --git a/frontend/test/playwright/visual-regression/pages/search-with-banners.spec.ts-snapshots/page-with-all-banners-lg-dark-linux.png b/frontend/test/playwright/visual-regression/pages/search-with-banners.spec.ts-snapshots/page-with-all-banners-lg-dark-linux.png index 789047bfc96..9b26dc40193 100644 Binary files a/frontend/test/playwright/visual-regression/pages/search-with-banners.spec.ts-snapshots/page-with-all-banners-lg-dark-linux.png and b/frontend/test/playwright/visual-regression/pages/search-with-banners.spec.ts-snapshots/page-with-all-banners-lg-dark-linux.png differ diff --git a/frontend/test/playwright/visual-regression/pages/search-with-banners.spec.ts-snapshots/page-with-all-banners-xl-dark-linux.png b/frontend/test/playwright/visual-regression/pages/search-with-banners.spec.ts-snapshots/page-with-all-banners-xl-dark-linux.png index 16cf22791fd..15df690404f 100644 Binary files a/frontend/test/playwright/visual-regression/pages/search-with-banners.spec.ts-snapshots/page-with-all-banners-xl-dark-linux.png and b/frontend/test/playwright/visual-regression/pages/search-with-banners.spec.ts-snapshots/page-with-all-banners-xl-dark-linux.png differ