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.
- Loading branch information
Showing
22 changed files
with
100 additions
and
36 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { expect, test } from '@playwright/test' | ||
|
||
test.describe('VIconButton', () => { | ||
const url = '/iframe.html?id=components-viconbutton--sizes' | ||
|
||
test('icon button sizes', async ({ page }) => { | ||
await page.goto(url) | ||
expect(await page.screenshot()).toMatchSnapshot({ | ||
name: 'v-icon-button-sizes.png', | ||
}) | ||
}) | ||
}) |
Binary file added
BIN
+11.8 KB
...visual-regression/v-icon-button.spec.ts-snapshots/v-icon-button-sizes-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
41 changes: 41 additions & 0 deletions
41
test/storybook/visual-regression/v-search-bar-button.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,41 @@ | ||
import { expect, test } from '@playwright/test' | ||
|
||
test.describe.configure({ mode: 'parallel' }) | ||
const wrapperLocator = '.wrapper' | ||
test.describe('VSearchBarButton', () => { | ||
test.beforeEach(async ({ page }) => { | ||
await page.goto( | ||
'/iframe.html?id=components-vheader-vheadermobile-vsearchbarbutton--clear-and-back-buttons' | ||
) | ||
}) | ||
test('Clear and back buttons resting', async ({ page }) => { | ||
expect(await page.locator(wrapperLocator).screenshot()).toMatchSnapshot({ | ||
name: `clear-back-buttons-resting.png`, | ||
}) | ||
}) | ||
|
||
test(`Back button hovered`, async ({ page }) => { | ||
await page.hover('.wrapper>button:nth-child(1)') | ||
expect(await page.locator(wrapperLocator).screenshot()).toMatchSnapshot({ | ||
name: `back-button-hovered.png`, | ||
}) | ||
}) | ||
test(`Back button focused`, async ({ page }) => { | ||
await page.focus('.wrapper>button:nth-child(1)') | ||
expect(await page.locator(wrapperLocator).screenshot()).toMatchSnapshot({ | ||
name: `back-button-focused.png`, | ||
}) | ||
}) | ||
test(`Clear button hovered`, async ({ page }) => { | ||
await page.hover('.wrapper>button:nth-child(2)') | ||
expect(await page.locator(wrapperLocator).screenshot()).toMatchSnapshot({ | ||
name: `clear-button-hovered.png`, | ||
}) | ||
}) | ||
test(`Clear button focused`, async ({ page }) => { | ||
await page.hover('.wrapper>button:nth-child(2)') | ||
expect(await page.locator(wrapperLocator).screenshot()).toMatchSnapshot({ | ||
name: `clear-button-focused.png`, | ||
}) | ||
}) | ||
}) |
Binary file added
BIN
+1.2 KB
...-regression/v-search-bar-button.spec.ts-snapshots/back-button-focused-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
+1.04 KB
...-regression/v-search-bar-button.spec.ts-snapshots/back-button-hovered-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
+962 Bytes
...sion/v-search-bar-button.spec.ts-snapshots/clear-back-buttons-resting-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
+1.04 KB
...regression/v-search-bar-button.spec.ts-snapshots/clear-button-focused-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
+1.04 KB
...regression/v-search-bar-button.spec.ts-snapshots/clear-button-hovered-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.