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 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add VR tests for footer and search header
- Loading branch information
Showing
58 changed files
with
91 additions
and
51 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
Binary file added
BIN
+4.37 KB
...al-regression/components/header.spec.ts-snapshots/filters-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 added
BIN
+2.58 KB
...al-regression/components/header.spec.ts-snapshots/filters-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 added
BIN
+2.4 KB
...al-regression/components/header.spec.ts-snapshots/filters-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 added
BIN
+3.87 KB
...al-regression/components/header.spec.ts-snapshots/filters-open-rtl-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
+2.55 KB
...al-regression/components/header.spec.ts-snapshots/filters-open-rtl-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
+2.39 KB
...al-regression/components/header.spec.ts-snapshots/filters-open-rtl-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
+4.37 KB
...visual-regression/components/header.spec.ts-snapshots/resting-ltr-md-actual.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
+2.58 KB
...visual-regression/components/header.spec.ts-snapshots/resting-ltr-sm-actual.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
+2.4 KB
...visual-regression/components/header.spec.ts-snapshots/resting-ltr-xs-actual.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
+3.87 KB
.../visual-regression/components/header.spec.ts-snapshots/resting-rtl-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
+2.55 KB
.../visual-regression/components/header.spec.ts-snapshots/resting-rtl-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
+2.39 KB
.../visual-regression/components/header.spec.ts-snapshots/resting-rtl-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
+4.38 KB
...visual-regression/components/header.spec.ts-snapshots/scrolled-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 added
BIN
+2.58 KB
...visual-regression/components/header.spec.ts-snapshots/scrolled-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 added
BIN
+2.41 KB
...visual-regression/components/header.spec.ts-snapshots/scrolled-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 added
BIN
+3.87 KB
...visual-regression/components/header.spec.ts-snapshots/scrolled-rtl-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
+2.55 KB
...visual-regression/components/header.spec.ts-snapshots/scrolled-rtl-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
+2.39 KB
...visual-regression/components/header.spec.ts-snapshots/scrolled-rtl-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
+5.48 KB
...egression/components/header.spec.ts-snapshots/searchbar-active-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 added
BIN
+5.13 KB
...egression/components/header.spec.ts-snapshots/searchbar-active-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 added
BIN
+4.26 KB
...egression/components/header.spec.ts-snapshots/searchbar-active-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 added
BIN
+5.46 KB
...egression/components/header.spec.ts-snapshots/searchbar-active-rtl-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
+5.11 KB
...egression/components/header.spec.ts-snapshots/searchbar-active-rtl-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
+4.24 KB
...egression/components/header.spec.ts-snapshots/searchbar-active-rtl-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
+4.37 KB
...gression/components/header.spec.ts-snapshots/searchbar-hovered-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 added
BIN
+2.59 KB
...gression/components/header.spec.ts-snapshots/searchbar-hovered-ltr-sm-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.42 KB
...gression/components/header.spec.ts-snapshots/searchbar-hovered-ltr-xs-linux.png
Oops, something went wrong.
Binary file added
BIN
+3.88 KB
...gression/components/header.spec.ts-snapshots/searchbar-hovered-rtl-md-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.56 KB
...gression/components/header.spec.ts-snapshots/searchbar-hovered-rtl-sm-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.4 KB
...gression/components/header.spec.ts-snapshots/searchbar-hovered-rtl-xs-linux.png
Oops, something went wrong.
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,37 @@ | ||
import { test } from '@playwright/test' | ||
|
||
import breakpoints from '~~/test/playwright/utils/breakpoints' | ||
import { languageDirections } from '~~/test/playwright/utils/navigation' | ||
|
||
const footerKinds = ['internal', 'content'] as const | ||
|
||
const defaultUrl = '/iframe.html?id=components-vfooter--' | ||
|
||
const pageUrl = ( | ||
dir: typeof languageDirections[number], | ||
footerKind: typeof footerKinds[number] | ||
) => { | ||
const url = `${defaultUrl}${footerKind}` | ||
return dir === 'ltr' ? url : `${url}&globals=languageDirection:rtl` | ||
} | ||
|
||
test.describe.configure({ mode: 'parallel' }) | ||
|
||
test.describe('VFooter', () => { | ||
for (const dir of languageDirections) { | ||
for (const footerKind of footerKinds) { | ||
breakpoints.describeEvery(({ expectSnapshot }) => { | ||
test(`footer-${footerKind}-${dir}`, async ({ page }) => { | ||
await page.goto(pageUrl(dir, footerKind)) | ||
if (dir === 'rtl') { | ||
await page.locator('#language').selectOption({ value: 'ar' }) | ||
} | ||
await expectSnapshot( | ||
`footer-${footerKind}-${dir}`, | ||
page.locator('footer') | ||
) | ||
}) | ||
}) | ||
} | ||
} | ||
}) |
Binary file added
BIN
+15 KB
...k/visual-regression/v-footer.spec.ts-snapshots/footer-content-ltr-2xl-linux.png
Oops, something went wrong.
Binary file added
BIN
+15.3 KB
...ok/visual-regression/v-footer.spec.ts-snapshots/footer-content-ltr-lg-linux.png
Oops, something went wrong.
Binary file added
BIN
+14.8 KB
...ok/visual-regression/v-footer.spec.ts-snapshots/footer-content-ltr-md-linux.png
Oops, something went wrong.
Binary file added
BIN
+15.1 KB
...ok/visual-regression/v-footer.spec.ts-snapshots/footer-content-ltr-sm-linux.png
Oops, something went wrong.
Binary file added
BIN
+14.7 KB
...ok/visual-regression/v-footer.spec.ts-snapshots/footer-content-ltr-xl-linux.png
Oops, something went wrong.
Binary file added
BIN
+16.8 KB
...ok/visual-regression/v-footer.spec.ts-snapshots/footer-content-ltr-xs-linux.png
Oops, something went wrong.
Binary file added
BIN
+13.3 KB
...k/visual-regression/v-footer.spec.ts-snapshots/footer-content-rtl-2xl-linux.png
Oops, something went wrong.
Binary file added
BIN
+13.7 KB
...ok/visual-regression/v-footer.spec.ts-snapshots/footer-content-rtl-lg-linux.png
Oops, something went wrong.
Binary file added
BIN
+13.2 KB
...ok/visual-regression/v-footer.spec.ts-snapshots/footer-content-rtl-md-linux.png
Oops, something went wrong.
Binary file added
BIN
+13.3 KB
...ok/visual-regression/v-footer.spec.ts-snapshots/footer-content-rtl-sm-linux.png
Oops, something went wrong.
Binary file added
BIN
+13 KB
...ok/visual-regression/v-footer.spec.ts-snapshots/footer-content-rtl-xl-linux.png
Oops, something went wrong.
Binary file added
BIN
+14.5 KB
...ok/visual-regression/v-footer.spec.ts-snapshots/footer-content-rtl-xs-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.55 KB
.../visual-regression/v-footer.spec.ts-snapshots/footer-internal-ltr-2xl-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.14 KB
...k/visual-regression/v-footer.spec.ts-snapshots/footer-internal-ltr-lg-linux.png
Oops, something went wrong.
Binary file added
BIN
+6.87 KB
...k/visual-regression/v-footer.spec.ts-snapshots/footer-internal-ltr-md-linux.png
Oops, something went wrong.
Binary file added
BIN
+6.72 KB
...k/visual-regression/v-footer.spec.ts-snapshots/footer-internal-ltr-sm-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.32 KB
...k/visual-regression/v-footer.spec.ts-snapshots/footer-internal-ltr-xl-linux.png
Oops, something went wrong.
Binary file added
BIN
+6.9 KB
...k/visual-regression/v-footer.spec.ts-snapshots/footer-internal-ltr-xs-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.51 KB
.../visual-regression/v-footer.spec.ts-snapshots/footer-internal-rtl-2xl-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.1 KB
...k/visual-regression/v-footer.spec.ts-snapshots/footer-internal-rtl-lg-linux.png
Oops, something went wrong.
Binary file added
BIN
+6.81 KB
...k/visual-regression/v-footer.spec.ts-snapshots/footer-internal-rtl-md-linux.png
Oops, something went wrong.
Binary file added
BIN
+6.57 KB
...k/visual-regression/v-footer.spec.ts-snapshots/footer-internal-rtl-sm-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.28 KB
...k/visual-regression/v-footer.spec.ts-snapshots/footer-internal-rtl-xl-linux.png
Oops, something went wrong.
Binary file added
BIN
+6.74 KB
...k/visual-regression/v-footer.spec.ts-snapshots/footer-internal-rtl-xs-linux.png
Oops, something went wrong.