-
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(Card,Alert): CSF 3 and visual tests (#1597)
- Loading branch information
1 parent
82f24ce
commit 83c5368
Showing
78 changed files
with
273 additions
and
119 deletions.
There are no files selected for viewing
Binary file added
BIN
+106 KB
...rt.visual.test.tsx-snapshots/Alert-render-story-Actions-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
+59.6 KB
...lert.visual.test.tsx-snapshots/Alert-render-story-Actions-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
+102 KB
...t.visual.test.tsx-snapshots/Alert-render-story-Actions-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
+57.3 KB
...ert.visual.test.tsx-snapshots/Alert-render-story-Actions-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 added
BIN
+51.2 KB
...lert.visual.test.tsx-snapshots/Alert-render-story-Align-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
+31 KB
.../Alert.visual.test.tsx-snapshots/Alert-render-story-Align-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
+49.2 KB
...ert.visual.test.tsx-snapshots/Alert-render-story-Align-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
+29.6 KB
...Alert.visual.test.tsx-snapshots/Alert-render-story-Align-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 added
BIN
+39.2 KB
...rt.visual.test.tsx-snapshots/Alert-render-story-Corners-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
+20.2 KB
...lert.visual.test.tsx-snapshots/Alert-render-story-Corners-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
+37.6 KB
...t.visual.test.tsx-snapshots/Alert-render-story-Corners-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
+19.4 KB
...ert.visual.test.tsx-snapshots/Alert-render-story-Corners-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 added
BIN
+23.8 KB
...visual.test.tsx-snapshots/Alert-render-story-CustomIcon-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
+15.2 KB
...t.visual.test.tsx-snapshots/Alert-render-story-CustomIcon-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
+22.7 KB
...isual.test.tsx-snapshots/Alert-render-story-CustomIcon-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
+14.5 KB
....visual.test.tsx-snapshots/Alert-render-story-CustomIcon-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 added
BIN
+22 KB
...rt.visual.test.tsx-snapshots/Alert-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
+13.6 KB
...lert.visual.test.tsx-snapshots/Alert-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
+21 KB
...t.visual.test.tsx-snapshots/Alert-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
+13 KB
...ert.visual.test.tsx-snapshots/Alert-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 added
BIN
+38.9 KB
...Alert.visual.test.tsx-snapshots/Alert-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
+23.5 KB
..._/Alert.visual.test.tsx-snapshots/Alert-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
+37.2 KB
...lert.visual.test.tsx-snapshots/Alert-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
+22.5 KB
.../Alert.visual.test.tsx-snapshots/Alert-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 added
BIN
+56.9 KB
...ert.visual.test.tsx-snapshots/Alert-render-story-Layout-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
+33.2 KB
...Alert.visual.test.tsx-snapshots/Alert-render-story-Layout-dark-webkit-linux.png
Oops, something went wrong.
Binary file added
BIN
+54.5 KB
...rt.visual.test.tsx-snapshots/Alert-render-story-Layout-light-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+31.7 KB
...lert.visual.test.tsx-snapshots/Alert-render-story-Layout-light-webkit-linux.png
Oops, something went wrong.
Binary file added
BIN
+29.9 KB
...rt.visual.test.tsx-snapshots/Alert-render-story-Message-dark-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+18.1 KB
...lert.visual.test.tsx-snapshots/Alert-render-story-Message-dark-webkit-linux.png
Oops, something went wrong.
Binary file added
BIN
+28.6 KB
...t.visual.test.tsx-snapshots/Alert-render-story-Message-light-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+17.3 KB
...ert.visual.test.tsx-snapshots/Alert-render-story-Message-light-webkit-linux.png
Oops, something went wrong.
Binary file added
BIN
+160 KB
...lert.visual.test.tsx-snapshots/Alert-render-story-Theme-dark-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+99.8 KB
.../Alert.visual.test.tsx-snapshots/Alert-render-story-Theme-dark-webkit-linux.png
Oops, something went wrong.
Binary file added
BIN
+158 KB
...ert.visual.test.tsx-snapshots/Alert-render-story-Theme-light-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+98.9 KB
...Alert.visual.test.tsx-snapshots/Alert-render-story-Theme-light-webkit-linux.png
Oops, something went wrong.
Binary file added
BIN
+42 KB
...lert.visual.test.tsx-snapshots/Alert-render-story-Title-dark-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+23.6 KB
.../Alert.visual.test.tsx-snapshots/Alert-render-story-Title-dark-webkit-linux.png
Oops, something went wrong.
Binary file added
BIN
+40.5 KB
...ert.visual.test.tsx-snapshots/Alert-render-story-Title-light-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+23.3 KB
...Alert.visual.test.tsx-snapshots/Alert-render-story-Title-light-webkit-linux.png
Oops, something went wrong.
Binary file added
BIN
+49.5 KB
...Alert.visual.test.tsx-snapshots/Alert-render-story-View-dark-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+30.6 KB
..._/Alert.visual.test.tsx-snapshots/Alert-render-story-View-dark-webkit-linux.png
Oops, something went wrong.
Binary file added
BIN
+47.1 KB
...lert.visual.test.tsx-snapshots/Alert-render-story-View-light-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+29.2 KB
.../Alert.visual.test.tsx-snapshots/Alert-render-story-View-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
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,55 @@ | ||
import React from 'react'; | ||
|
||
import {test} from '~playwright/core'; | ||
|
||
import {AlertStories} from './helpersPlaywright'; | ||
|
||
test.describe('Alert', () => { | ||
test('render story: <Default>', async ({mount, expectScreenshot}) => { | ||
await mount(<AlertStories.Default />); | ||
|
||
await expectScreenshot(); | ||
}); | ||
|
||
test('render story: <Theme>', async ({mount, expectScreenshot}) => { | ||
await mount(<AlertStories.Theme />); | ||
|
||
await expectScreenshot(); | ||
}); | ||
|
||
test('render story: <CustomIcon>', async ({mount, expectScreenshot}) => { | ||
await mount(<AlertStories.CustomIcon />); | ||
|
||
await expectScreenshot(); | ||
}); | ||
|
||
test('render story: <Corners>', async ({mount, expectScreenshot}) => { | ||
await mount(<AlertStories.Corners />); | ||
|
||
await expectScreenshot(); | ||
}); | ||
|
||
test('render story: <View>', async ({mount, expectScreenshot}) => { | ||
await mount(<AlertStories.View />); | ||
|
||
await expectScreenshot(); | ||
}); | ||
|
||
test('render story: <Layout>', async ({mount, expectScreenshot}) => { | ||
await mount(<AlertStories.Layout />); | ||
|
||
await expectScreenshot(); | ||
}); | ||
|
||
test('render story: <Actions>', async ({mount, expectScreenshot}) => { | ||
await mount(<AlertStories.Actions />); | ||
|
||
await expectScreenshot(); | ||
}); | ||
|
||
test('render story: <Align>', async ({mount, expectScreenshot}) => { | ||
await mount(<AlertStories.Align />); | ||
|
||
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import {composeStories} from '@storybook/react'; | ||
|
||
import * as DefaultAlertStories from '../__stories__/Alert.stories'; | ||
|
||
export const AlertStories = composeStories(DefaultAlertStories); |
Binary file added
BIN
+8.27 KB
....visual.test.tsx-snapshots/Card-render-story-ActionType-dark-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+6.02 KB
...rd.visual.test.tsx-snapshots/Card-render-story-ActionType-dark-webkit-linux.png
Oops, something went wrong.
Binary file added
BIN
+8.11 KB
...visual.test.tsx-snapshots/Card-render-story-ActionType-light-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+6.01 KB
...d.visual.test.tsx-snapshots/Card-render-story-ActionType-light-webkit-linux.png
Oops, something went wrong.
Binary file added
BIN
+10.3 KB
...Card.visual.test.tsx-snapshots/Card-render-story-Custom-dark-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+8.9 KB
..._/Card.visual.test.tsx-snapshots/Card-render-story-Custom-dark-webkit-linux.png
Oops, something went wrong.
Binary file added
BIN
+10.1 KB
...ard.visual.test.tsx-snapshots/Card-render-story-Custom-light-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+8.44 KB
.../Card.visual.test.tsx-snapshots/Card-render-story-Custom-light-webkit-linux.png
Oops, something went wrong.
Binary file added
BIN
+4.48 KB
...ard.visual.test.tsx-snapshots/Card-render-story-Default-dark-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+3.92 KB
.../Card.visual.test.tsx-snapshots/Card-render-story-Default-dark-webkit-linux.png
Oops, something went wrong.
Binary file added
BIN
+4.25 KB
...rd.visual.test.tsx-snapshots/Card-render-story-Default-light-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+3.72 KB
...Card.visual.test.tsx-snapshots/Card-render-story-Default-light-webkit-linux.png
Oops, something went wrong.
Binary file added
BIN
+11.8 KB
...sual.test.tsx-snapshots/Card-render-story-SelectionType-dark-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+8.65 KB
...visual.test.tsx-snapshots/Card-render-story-SelectionType-dark-webkit-linux.png
Oops, something went wrong.
Binary file added
BIN
+11.4 KB
...ual.test.tsx-snapshots/Card-render-story-SelectionType-light-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+8.46 KB
...isual.test.tsx-snapshots/Card-render-story-SelectionType-light-webkit-linux.png
Oops, something went wrong.
Binary file added
BIN
+6.85 KB
..._/Card.visual.test.tsx-snapshots/Card-render-story-Size-dark-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+6.09 KB
...s__/Card.visual.test.tsx-snapshots/Card-render-story-Size-dark-webkit-linux.png
Oops, something went wrong.
Binary file added
BIN
+6.4 KB
.../Card.visual.test.tsx-snapshots/Card-render-story-Size-light-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+5.68 KB
...__/Card.visual.test.tsx-snapshots/Card-render-story-Size-light-webkit-linux.png
Oops, something went wrong.
Binary file added
BIN
+41.9 KB
.../Card.visual.test.tsx-snapshots/Card-render-story-Theme-dark-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+34 KB
...__/Card.visual.test.tsx-snapshots/Card-render-story-Theme-dark-webkit-linux.png
Oops, something went wrong.
Binary file added
BIN
+41 KB
...Card.visual.test.tsx-snapshots/Card-render-story-Theme-light-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+33.1 KB
..._/Card.visual.test.tsx-snapshots/Card-render-story-Theme-light-webkit-linux.png
Oops, something went wrong.
Binary file added
BIN
+12.7 KB
..._/Card.visual.test.tsx-snapshots/Card-render-story-View-dark-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+10.5 KB
...s__/Card.visual.test.tsx-snapshots/Card-render-story-View-dark-webkit-linux.png
Oops, something went wrong.
Binary file added
BIN
+11.5 KB
.../Card.visual.test.tsx-snapshots/Card-render-story-View-light-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+9.31 KB
...__/Card.visual.test.tsx-snapshots/Card-render-story-View-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
Oops, something went wrong.