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.
Update content switcher tabs fonts and icons to match the mockups (#2140
- Loading branch information
Showing
30 changed files
with
78 additions
and
35 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
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.
Binary file removed
BIN
-29.3 KB
...ilters-sidebar.spec.ts-snapshots/filters-sidebar-filters-selected-rtl-linux.png
Binary file not shown.
60 changes: 60 additions & 0 deletions
60
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,60 @@ | ||
import { expect, test } from "@playwright/test" | ||
|
||
import { | ||
enableNewHeader, | ||
goToSearchTerm, | ||
languageDirections, | ||
t, | ||
} 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: t("filters.title", dir) }).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: t("filters.title", dir) }).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.8 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.9 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
+28.7 KB
...s/filters.spec.ts-snapshots/filters-modal-filters-selected-rtl-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
+25.6 KB
...s/filters.spec.ts-snapshots/filters-modal-filters-selected-rtl-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
+24 KB
...s/filters.spec.ts-snapshots/filters-modal-filters-selected-rtl-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.6 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
+28.7 KB
...ression/components/filters.spec.ts-snapshots/filters-modal-rtl-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
+25.6 KB
...ression/components/filters.spec.ts-snapshots/filters-modal-rtl-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
+23.9 KB
...ression/components/filters.spec.ts-snapshots/filters-modal-rtl-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 renamed
BIN
+31 KB
...rs-sidebar-filters-selected-ltr-linux.png → ...ots/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
+29.1 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 renamed
BIN
+29.8 KB
...s-snapshots/filters-sidebar-ltr-linux.png → ...s-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 renamed
BIN
+27.9 KB
...s-snapshots/filters-sidebar-rtl-linux.png → ...s-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
-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.