This repository has been archived by the owner on Feb 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
63 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 0 additions & 26 deletions
26
test/playwright/visual-regression/components/filters-sidebar.spec.ts
This file was deleted.
Oops, something went wrong.
59 changes: 59 additions & 0 deletions
59
test/playwright/visual-regression/components/filters.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
import { expect, test } from "@playwright/test" | ||
|
||
import { | ||
enableNewHeader, | ||
goToSearchTerm, | ||
languageDirections, | ||
} from "~~/test/playwright/utils/navigation" | ||
import breakpoints from "~~/test/playwright/utils/breakpoints" | ||
|
||
test.describe.configure({ mode: "parallel" }) | ||
|
||
for (const dir of languageDirections) { | ||
breakpoints.describeEachDesktop(() => { | ||
test(`Filters sidebar none selected - ${dir}`, async ({ page }) => { | ||
await enableNewHeader(page) | ||
|
||
await goToSearchTerm(page, "birds", { dir }) | ||
|
||
expect(await page.locator(".sidebar").screenshot()).toMatchSnapshot( | ||
`filters-sidebar-${dir}.png` | ||
) | ||
}) | ||
|
||
test(`Filters sidebar some filters selected - ${dir}`, async ({ page }) => { | ||
await enableNewHeader(page) | ||
|
||
await goToSearchTerm(page, "birds", { dir }) | ||
await page.locator('input[type="checkbox"]').first().check() | ||
|
||
expect(await page.locator(".sidebar").screenshot()).toMatchSnapshot( | ||
`filters-sidebar-checked-${dir}.png` | ||
) | ||
}) | ||
}) | ||
|
||
breakpoints.describeEachMobile(({ expectSnapshot }) => { | ||
test(`Filters modal none selected - ${dir}`, async ({ page }) => { | ||
await enableNewHeader(page) | ||
|
||
await goToSearchTerm(page, "birds", { dir }) | ||
await page.getByRole("button", { name: "Menu" }).click() | ||
await page.getByRole("tab", { name: "Filters" }).click() | ||
|
||
await expectSnapshot(`filters-modal-${dir}.png`, page) | ||
}) | ||
|
||
test(`Filters modal some filters selected - ${dir}`, async ({ page }) => { | ||
await enableNewHeader(page) | ||
|
||
await goToSearchTerm(page, "birds", { dir }) | ||
await page.getByRole("button", { name: "Menu" }).click() | ||
await page.getByRole("tab", { name: "Filters" }).click() | ||
|
||
await page.locator('input[type="checkbox"]').first().check() | ||
|
||
await expectSnapshot(`filters-modal-filters-selected-${dir}.png`, page) | ||
}) | ||
}) | ||
} |
Binary file added
BIN
+31.1 KB
...s/filters.spec.ts-snapshots/filters-modal-filters-selected-ltr-png-md-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+28.5 KB
...s/filters.spec.ts-snapshots/filters-modal-filters-selected-ltr-png-sm-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+26.7 KB
...s/filters.spec.ts-snapshots/filters-modal-filters-selected-ltr-png-xs-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+30.8 KB
...ression/components/filters.spec.ts-snapshots/filters-modal-ltr-png-md-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+28.5 KB
...ression/components/filters.spec.ts-snapshots/filters-modal-ltr-png-sm-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+26.7 KB
...ression/components/filters.spec.ts-snapshots/filters-modal-ltr-png-xs-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+30.6 KB
...sion/components/filters.spec.ts-snapshots/filters-sidebar-checked-ltr-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+28.9 KB
...sion/components/filters.spec.ts-snapshots/filters-sidebar-checked-rtl-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+29.4 KB
...l-regression/components/filters.spec.ts-snapshots/filters-sidebar-ltr-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+27.6 KB
...l-regression/components/filters.spec.ts-snapshots/filters-sidebar-rtl-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-270 Bytes
(99%)
...on/pages/homepage-old.spec.ts-snapshots/content-switcher-open-ltr-2xl-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-231 Bytes
(99%)
...ion/pages/homepage-old.spec.ts-snapshots/content-switcher-open-ltr-lg-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-270 Bytes
(99%)
...ion/pages/homepage-old.spec.ts-snapshots/content-switcher-open-ltr-md-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-285 Bytes
(99%)
...ion/pages/homepage-old.spec.ts-snapshots/content-switcher-open-ltr-xl-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-213 Bytes
(99%)
...ression/pages/homepage.spec.ts-snapshots/content-switcher-open-ltr-md-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-189 Bytes
(99%)
...ression/pages/homepage.spec.ts-snapshots/content-switcher-open-ltr-sm-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-191 Bytes
(99%)
...ression/pages/homepage.spec.ts-snapshots/content-switcher-open-ltr-xs-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-208 Bytes
(99%)
....spec.ts-snapshots/content-switcher-with-external-sources-open-ltr-md-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-202 Bytes
(99%)
....spec.ts-snapshots/content-switcher-with-external-sources-open-ltr-sm-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-216 Bytes
(99%)
....spec.ts-snapshots/content-switcher-with-external-sources-open-ltr-xs-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.