-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(Playwright): update version playwright (#1448)
- Loading branch information
1 parent
2bbeba0
commit 61cd40d
Showing
71 changed files
with
724 additions
and
161 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
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 |
---|---|---|
@@ -1,17 +1,5 @@ | ||
import {composeStories} from '@storybook/react'; | ||
|
||
import * as ButtonStories from '../__stories__/Button.stories'; | ||
import * as DefaultButtonStories from '../__stories__/Button.stories'; | ||
|
||
export const { | ||
Default, | ||
Selected, | ||
Size, | ||
View, | ||
Icon, | ||
Disabled, | ||
Loading, | ||
Width, | ||
Pin, | ||
Link, | ||
InsideText, | ||
} = composeStories(ButtonStories); | ||
export const ButtonStories = composeStories(DefaultButtonStories); |
Binary file removed
BIN
-1.46 KB
..._/Label.visual.test.tsx-snapshots/Label-render-story-Close-1-chromium-linux.png
Binary file not shown.
Binary file removed
BIN
-1.25 KB
...s__/Label.visual.test.tsx-snapshots/Label-render-story-Close-1-webkit-linux.png
Binary file not shown.
Binary file added
BIN
+3.27 KB
...abel.visual.test.tsx-snapshots/Label-render-story-Close-dark-chromium-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.66 KB
.../Label.visual.test.tsx-snapshots/Label-render-story-Close-dark-webkit-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.32 KB
...bel.visual.test.tsx-snapshots/Label-render-story-Close-light-chromium-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.71 KB
...Label.visual.test.tsx-snapshots/Label-render-story-Close-light-webkit-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
-1.52 KB
...__/Label.visual.test.tsx-snapshots/Label-render-story-Copy-1-chromium-linux.png
Binary file not shown.
Binary file removed
BIN
-1.26 KB
...ts__/Label.visual.test.tsx-snapshots/Label-render-story-Copy-1-webkit-linux.png
Binary file not shown.
Binary file added
BIN
+3.22 KB
...Label.visual.test.tsx-snapshots/Label-render-story-Copy-dark-chromium-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.72 KB
..._/Label.visual.test.tsx-snapshots/Label-render-story-Copy-dark-webkit-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.29 KB
...abel.visual.test.tsx-snapshots/Label-render-story-Copy-light-chromium-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.73 KB
.../Label.visual.test.tsx-snapshots/Label-render-story-Copy-light-webkit-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
-1.27 KB
...Label.visual.test.tsx-snapshots/Label-render-story-Default-1-chromium-linux.png
Binary file not shown.
Binary file removed
BIN
-1.08 KB
..._/Label.visual.test.tsx-snapshots/Label-render-story-Default-1-webkit-linux.png
Binary file not shown.
Binary file added
BIN
+2.73 KB
...el.visual.test.tsx-snapshots/Label-render-story-Default-dark-chromium-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.29 KB
...abel.visual.test.tsx-snapshots/Label-render-story-Default-dark-webkit-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.78 KB
...l.visual.test.tsx-snapshots/Label-render-story-Default-light-chromium-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.3 KB
...bel.visual.test.tsx-snapshots/Label-render-story-Default-light-webkit-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
-1.55 KB
...__/Label.visual.test.tsx-snapshots/Label-render-story-Icon-1-chromium-linux.png
Binary file not shown.
Binary file removed
BIN
-1.27 KB
...ts__/Label.visual.test.tsx-snapshots/Label-render-story-Icon-1-webkit-linux.png
Binary file not shown.
Binary file added
BIN
+3.36 KB
...Label.visual.test.tsx-snapshots/Label-render-story-Icon-dark-chromium-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.83 KB
..._/Label.visual.test.tsx-snapshots/Label-render-story-Icon-dark-webkit-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.4 KB
...abel.visual.test.tsx-snapshots/Label-render-story-Icon-light-chromium-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.86 KB
.../Label.visual.test.tsx-snapshots/Label-render-story-Icon-light-webkit-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
-2.67 KB
...l.visual.test.tsx-snapshots/Label-render-story-Interactive-1-chromium-linux.png
Binary file not shown.
Binary file removed
BIN
-2.26 KB
...bel.visual.test.tsx-snapshots/Label-render-story-Interactive-1-webkit-linux.png
Diff not rendered.
Binary file added
BIN
+6.35 KB
...isual.test.tsx-snapshots/Label-render-story-Interactive-dark-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+5.01 KB
....visual.test.tsx-snapshots/Label-render-story-Interactive-dark-webkit-linux.png
Oops, something went wrong.
Binary file added
BIN
+6.59 KB
...sual.test.tsx-snapshots/Label-render-story-Interactive-light-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+5.15 KB
...visual.test.tsx-snapshots/Label-render-story-Interactive-light-webkit-linux.png
Oops, something went wrong.
Binary file removed
BIN
-1.27 KB
...l.visual.test.tsx-snapshots/Label-render-story-LinkWrapper-1-chromium-linux.png
Diff not rendered.
Binary file removed
BIN
-1.08 KB
...bel.visual.test.tsx-snapshots/Label-render-story-LinkWrapper-1-webkit-linux.png
Diff not rendered.
Binary file added
BIN
+2.73 KB
...isual.test.tsx-snapshots/Label-render-story-LinkWrapper-dark-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.29 KB
....visual.test.tsx-snapshots/Label-render-story-LinkWrapper-dark-webkit-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.78 KB
...sual.test.tsx-snapshots/Label-render-story-LinkWrapper-light-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.3 KB
...visual.test.tsx-snapshots/Label-render-story-LinkWrapper-light-webkit-linux.png
Oops, something went wrong.
Binary file removed
BIN
-376 KB
...visual.test.tsx-snapshots/Label-render-story-ShowcaseStory-1-chromium-linux.png
Diff not rendered.
Binary file removed
BIN
-225 KB
...l.visual.test.tsx-snapshots/Label-render-story-ShowcaseStory-1-webkit-linux.png
Diff not rendered.
Binary file added
BIN
+685 KB
...ual.test.tsx-snapshots/Label-render-story-ShowcaseStory-dark-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+421 KB
...isual.test.tsx-snapshots/Label-render-story-ShowcaseStory-dark-webkit-linux.png
Oops, something went wrong.
Binary file added
BIN
+909 KB
...al.test.tsx-snapshots/Label-render-story-ShowcaseStory-light-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+530 KB
...sual.test.tsx-snapshots/Label-render-story-ShowcaseStory-light-webkit-linux.png
Oops, something went wrong.
Binary file removed
BIN
-2.79 KB
...__/Label.visual.test.tsx-snapshots/Label-render-story-Size-1-chromium-linux.png
Diff not rendered.
Binary file removed
BIN
-1.97 KB
...ts__/Label.visual.test.tsx-snapshots/Label-render-story-Size-1-webkit-linux.png
Diff not rendered.
Binary file added
BIN
+6.8 KB
...Label.visual.test.tsx-snapshots/Label-render-story-Size-dark-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+4.7 KB
..._/Label.visual.test.tsx-snapshots/Label-render-story-Size-dark-webkit-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.05 KB
...abel.visual.test.tsx-snapshots/Label-render-story-Size-light-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+4.62 KB
.../Label.visual.test.tsx-snapshots/Label-render-story-Size-light-webkit-linux.png
Oops, something went wrong.
Binary file removed
BIN
-7.13 KB
..._/Label.visual.test.tsx-snapshots/Label-render-story-Theme-1-chromium-linux.png
Diff not rendered.
Binary file removed
BIN
-6.19 KB
...s__/Label.visual.test.tsx-snapshots/Label-render-story-Theme-1-webkit-linux.png
Diff not rendered.
Binary file added
BIN
+17.2 KB
...abel.visual.test.tsx-snapshots/Label-render-story-Theme-dark-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+14.5 KB
.../Label.visual.test.tsx-snapshots/Label-render-story-Theme-dark-webkit-linux.png
Oops, something went wrong.
Binary file added
BIN
+17.4 KB
...bel.visual.test.tsx-snapshots/Label-render-story-Theme-light-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+14.8 KB
...Label.visual.test.tsx-snapshots/Label-render-story-Theme-light-webkit-linux.png
Oops, something went wrong.
Binary file removed
BIN
-1.58 KB
..._/Label.visual.test.tsx-snapshots/Label-render-story-Value-1-chromium-linux.png
Diff not rendered.
Binary file removed
BIN
-1.48 KB
...s__/Label.visual.test.tsx-snapshots/Label-render-story-Value-1-webkit-linux.png
Diff not rendered.
Binary file added
BIN
+3.8 KB
...abel.visual.test.tsx-snapshots/Label-render-story-Value-dark-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+3.29 KB
.../Label.visual.test.tsx-snapshots/Label-render-story-Value-dark-webkit-linux.png
Oops, something went wrong.
Binary file added
BIN
+3.87 KB
...bel.visual.test.tsx-snapshots/Label-render-story-Value-light-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+3.4 KB
...Label.visual.test.tsx-snapshots/Label-render-story-Value-light-webkit-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 |
---|---|---|
@@ -1,80 +1,67 @@ | ||
import React from 'react'; | ||
|
||
import {expect} from '@playwright/experimental-ct-react'; | ||
|
||
import {test} from '~playwright/core'; | ||
|
||
import { | ||
Close, | ||
Copy, | ||
Default, | ||
Icon, | ||
Interactive, | ||
LinkWrapper, | ||
ShowcaseStory, | ||
Size, | ||
Theme, | ||
Value, | ||
} from './helpersPlaywright'; | ||
import {LabelStories} from './helpersPlaywright'; | ||
|
||
test.describe('Label', () => { | ||
test('render story: <Default>', async ({mount}) => { | ||
const component = await mount(<Default />); | ||
test('render story: <Default>', async ({mount, expectScreenshot}) => { | ||
await mount(<LabelStories.Default />); | ||
|
||
await expect(component).toHaveScreenshot(); | ||
await expectScreenshot(); | ||
}); | ||
|
||
test('render story: <Theme>', async ({mount}) => { | ||
const component = await mount(<Theme />); | ||
test('render story: <Theme>', async ({mount, expectScreenshot}) => { | ||
await mount(<LabelStories.Theme />); | ||
|
||
await expect(component).toHaveScreenshot(); | ||
await expectScreenshot(); | ||
}); | ||
|
||
test('render story: <Size>', async ({mount}) => { | ||
const component = await mount(<Size />); | ||
test('render story: <Size>', async ({mount, expectScreenshot}) => { | ||
await mount(<LabelStories.Size />); | ||
|
||
await expect(component).toHaveScreenshot(); | ||
await expectScreenshot(); | ||
}); | ||
|
||
test('render story: <Icon>', async ({mount}) => { | ||
const component = await mount(<Icon />); | ||
test('render story: <Icon>', async ({mount, expectScreenshot}) => { | ||
await mount(<LabelStories.Icon />); | ||
|
||
await expect(component).toHaveScreenshot(); | ||
await expectScreenshot(); | ||
}); | ||
|
||
test('render story: <Interactive>', async ({mount}) => { | ||
const component = await mount(<Interactive />); | ||
test('render story: <Interactive>', async ({mount, expectScreenshot}) => { | ||
await mount(<LabelStories.Interactive />); | ||
|
||
await expect(component).toHaveScreenshot(); | ||
await expectScreenshot(); | ||
}); | ||
|
||
test('render story: <LinkWrapper>', async ({mount}) => { | ||
const component = await mount(<LinkWrapper />); | ||
test('render story: <LinkWrapper>', async ({mount, expectScreenshot}) => { | ||
await mount(<LabelStories.LinkWrapper />); | ||
|
||
await expect(component).toHaveScreenshot(); | ||
await expectScreenshot(); | ||
}); | ||
|
||
test('render story: <ShowcaseStory>', async ({mount}) => { | ||
const component = await mount(<ShowcaseStory />); | ||
test('render story: <ShowcaseStory>', async ({mount, expectScreenshot}) => { | ||
await mount(<LabelStories.ShowcaseStory />); | ||
|
||
await expect(component).toHaveScreenshot(); | ||
await expectScreenshot(); | ||
}); | ||
|
||
test('render story: <Value>', async ({mount}) => { | ||
const component = await mount(<Value />); | ||
test('render story: <Value>', async ({mount, expectScreenshot}) => { | ||
await mount(<LabelStories.Value />); | ||
|
||
await expect(component).toHaveScreenshot(); | ||
await expectScreenshot(); | ||
}); | ||
|
||
test('render story: <Copy>', async ({mount}) => { | ||
const component = await mount(<Copy />); | ||
test('render story: <Copy>', async ({mount, expectScreenshot}) => { | ||
await mount(<LabelStories.Copy />); | ||
|
||
await expect(component).toHaveScreenshot(); | ||
await expectScreenshot(); | ||
}); | ||
|
||
test('render story: <Close>', async ({mount}) => { | ||
const component = await mount(<Close />); | ||
test('render story: <Close>', async ({mount, expectScreenshot}) => { | ||
await mount(<LabelStories.Close />); | ||
|
||
await expect(component).toHaveScreenshot(); | ||
await expectScreenshot(); | ||
}); | ||
}); |
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 |
---|---|---|
@@ -1,16 +1,5 @@ | ||
import {composeStories} from '@storybook/react'; | ||
|
||
import * as LabelStories from '../__stories__/Label.stories'; | ||
import * as DefaultLabelStories from '../__stories__/Label.stories'; | ||
|
||
export const { | ||
Default, | ||
Theme, | ||
Size, | ||
Interactive, | ||
Icon, | ||
Close, | ||
Copy, | ||
Value, | ||
LinkWrapper, | ||
ShowcaseStory, | ||
} = composeStories(LabelStories); | ||
export const LabelStories = composeStories(DefaultLabelStories); |