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.
Update the VFilterButton
- Loading branch information
Showing
23 changed files
with
99 additions
and
76 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
File renamed without changes.
60 changes: 60 additions & 0 deletions
60
test/storybook/visual-regression/v-filter-button-old.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 { test } from '@playwright/test' | ||
|
||
import breakpoints from '~~/test/playwright/utils/breakpoints' | ||
import { makeGotoWithArgs } from '~~/test/storybook/utils/args' | ||
|
||
const gotoWithArgs = makeGotoWithArgs( | ||
'components-vheaderold-vfilterbuttonold--default-story' | ||
) | ||
|
||
test.describe.configure({ mode: 'parallel' }) | ||
|
||
test.describe('VFilterButtonOld', () => { | ||
breakpoints.describeMd(({ expectSnapshot }) => { | ||
test('no filters applied', async ({ page }) => { | ||
await gotoWithArgs(page, { isMinMd: true }) | ||
await expectSnapshot('filter-button-old-at-rest', page) | ||
}) | ||
|
||
test('no filters pressed', async ({ page }) => { | ||
await gotoWithArgs(page, { isMinMd: true, pressed: true }) | ||
await expectSnapshot('filter-button-old-pressed', page) | ||
}) | ||
|
||
test('filters applied', async ({ page }) => { | ||
await gotoWithArgs(page, { isMinMd: true, appliedFilters: 2 }) | ||
await expectSnapshot('filter-button-old-2-filters', page) | ||
}) | ||
|
||
test('filters applied and pressed', async ({ page }) => { | ||
await gotoWithArgs(page, { | ||
isMinMd: true, | ||
appliedFilters: 2, | ||
pressed: true, | ||
}) | ||
await expectSnapshot('filter-button-old-2-filters-pressed', page) | ||
}) | ||
}) | ||
|
||
breakpoints.describeXs(({ expectSnapshot }) => { | ||
test('no filters applied and not scrolled', async ({ page }) => { | ||
await gotoWithArgs(page) | ||
await expectSnapshot('filter-button-old-no-filters-not-scrolled', page) | ||
}) | ||
|
||
test('no filters but scrolled', async ({ page }) => { | ||
await gotoWithArgs(page, { scrolled: true }) | ||
await expectSnapshot('filter-button-old-no-filters-scrolled', page) | ||
}) | ||
|
||
test('2 filters not scrolled', async ({ page }) => { | ||
await gotoWithArgs(page, { appliedFilters: 2 }) | ||
await expectSnapshot('filter-button-old-2-filters-not-scrolled', page) | ||
}) | ||
|
||
test('2 filters and scrolled', async ({ page }) => { | ||
await gotoWithArgs(page, { appliedFilters: 2, scrolled: true }) | ||
await expectSnapshot('filter-button-old-2-filters-scrolled', page) | ||
}) | ||
}) | ||
}) |
Binary file added
BIN
+5.33 KB
.../v-filter-button-old.spec.ts-snapshots/filter-button-old-2-filters-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
+4.12 KB
...ton-old.spec.ts-snapshots/filter-button-old-2-filters-not-scrolled-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.39 KB
...r-button-old.spec.ts-snapshots/filter-button-old-2-filters-pressed-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 renamed
BIN
+2.91 KB
...er-button-2-filters-scrolled-xs-linux.png → ...utton-old-2-filters-scrolled-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.17 KB
...on/v-filter-button-old.spec.ts-snapshots/filter-button-old-at-rest-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.
File renamed without changes
File renamed without changes
Binary file renamed
BIN
+4.94 KB
...pshots/filter-button-pressed-md-linux.png → ...ts/filter-button-old-pressed-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.
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.69 KB
...gression/v-filter-button.spec.ts-snapshots/filter-button-2-filters-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 removed
BIN
-5.14 KB
...gression/v-filter-button.spec.ts-snapshots/filter-button-2-filters-md-linux.png
Binary file not shown.
Binary file added
BIN
+6.22 KB
...lter-button.spec.ts-snapshots/filter-button-2-filters-not-scrolled-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 removed
BIN
-3.93 KB
...lter-button.spec.ts-snapshots/filter-button-2-filters-not-scrolled-xs-linux.png
Binary file not shown.
Binary file added
BIN
+4.83 KB
.../v-filter-button.spec.ts-snapshots/filter-button-2-filters-pressed-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 removed
BIN
-5.15 KB
.../v-filter-button.spec.ts-snapshots/filter-button-2-filters-pressed-md-linux.png
Binary file not shown.
Binary file added
BIN
+4.47 KB
...regression/v-filter-button.spec.ts-snapshots/filter-button-at-rest-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 removed
BIN
-4.99 KB
...regression/v-filter-button.spec.ts-snapshots/filter-button-at-rest-md-linux.png
Binary file not shown.
Binary file added
BIN
+6.06 KB
...ter-button.spec.ts-snapshots/filter-button-no-filters-not-scrolled-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 added
BIN
+4.59 KB
...regression/v-filter-button.spec.ts-snapshots/filter-button-pressed-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.