-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(Card): add smoke visual tests (#1773)
- Loading branch information
1 parent
9e0e9f7
commit 44d0775
Showing
33 changed files
with
161 additions
and
3 deletions.
There are no files selected for viewing
Binary file modified
BIN
-905 Bytes
(89%)
....visual.test.tsx-snapshots/Card-render-story-ActionType-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 removed
BIN
-6.02 KB
...rd.visual.test.tsx-snapshots/Card-render-story-ActionType-dark-webkit-linux.png
Binary file not shown.
Binary file modified
BIN
-930 Bytes
(89%)
...visual.test.tsx-snapshots/Card-render-story-ActionType-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 removed
BIN
-6.01 KB
...d.visual.test.tsx-snapshots/Card-render-story-ActionType-light-webkit-linux.png
Binary file not shown.
Binary file modified
BIN
-741 Bytes
(93%)
...Card.visual.test.tsx-snapshots/Card-render-story-Custom-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 removed
BIN
-8.9 KB
..._/Card.visual.test.tsx-snapshots/Card-render-story-Custom-dark-webkit-linux.png
Binary file not shown.
Binary file modified
BIN
-978 Bytes
(91%)
...ard.visual.test.tsx-snapshots/Card-render-story-Custom-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 removed
BIN
-8.44 KB
.../Card.visual.test.tsx-snapshots/Card-render-story-Custom-light-webkit-linux.png
Binary file not shown.
Binary file modified
BIN
-441 Bytes
(90%)
...ard.visual.test.tsx-snapshots/Card-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 removed
BIN
-3.92 KB
.../Card.visual.test.tsx-snapshots/Card-render-story-Default-dark-webkit-linux.png
Binary file not shown.
Binary file modified
BIN
-434 Bytes
(90%)
...rd.visual.test.tsx-snapshots/Card-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 removed
BIN
-3.72 KB
...Card.visual.test.tsx-snapshots/Card-render-story-Default-light-webkit-linux.png
Binary file not shown.
Binary file modified
BIN
-1.21 KB
(90%)
...sual.test.tsx-snapshots/Card-render-story-SelectionType-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 removed
BIN
-8.65 KB
...visual.test.tsx-snapshots/Card-render-story-SelectionType-dark-webkit-linux.png
Binary file not shown.
Binary file modified
BIN
-1.18 KB
(90%)
...ual.test.tsx-snapshots/Card-render-story-SelectionType-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 removed
BIN
-8.46 KB
...isual.test.tsx-snapshots/Card-render-story-SelectionType-light-webkit-linux.png
Binary file not shown.
Binary file modified
BIN
-765 Bytes
(89%)
..._/Card.visual.test.tsx-snapshots/Card-render-story-Size-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 removed
BIN
-6.09 KB
...s__/Card.visual.test.tsx-snapshots/Card-render-story-Size-dark-webkit-linux.png
Binary file not shown.
Binary file modified
BIN
-695 Bytes
(89%)
.../Card.visual.test.tsx-snapshots/Card-render-story-Size-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 removed
BIN
-5.68 KB
...__/Card.visual.test.tsx-snapshots/Card-render-story-Size-light-webkit-linux.png
Binary file not shown.
Binary file modified
BIN
-4.72 KB
(89%)
.../Card.visual.test.tsx-snapshots/Card-render-story-Theme-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 removed
BIN
-34 KB
...__/Card.visual.test.tsx-snapshots/Card-render-story-Theme-dark-webkit-linux.png
Binary file not shown.
Binary file modified
BIN
-4.67 KB
(89%)
...Card.visual.test.tsx-snapshots/Card-render-story-Theme-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 removed
BIN
-33.1 KB
..._/Card.visual.test.tsx-snapshots/Card-render-story-Theme-light-webkit-linux.png
Binary file not shown.
Binary file modified
BIN
-1.39 KB
(89%)
..._/Card.visual.test.tsx-snapshots/Card-render-story-View-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 removed
BIN
-10.5 KB
...s__/Card.visual.test.tsx-snapshots/Card-render-story-View-dark-webkit-linux.png
Diff not rendered.
Binary file modified
BIN
-1.31 KB
(89%)
.../Card.visual.test.tsx-snapshots/Card-render-story-View-light-chromium-linux.png
Oops, something went wrong.
Binary file removed
BIN
-9.31 KB
...__/Card.visual.test.tsx-snapshots/Card-render-story-View-light-webkit-linux.png
Diff not rendered.
Binary file added
BIN
+39.6 KB
...visual.test.tsx-snapshots/Card-smoke-smoke-action-type-light-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+127 KB
...ual.test.tsx-snapshots/Card-smoke-smoke-container-type-light-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+66.7 KB
...ual.test.tsx-snapshots/Card-smoke-smoke-selection-type-light-chromium-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,20 @@ | ||
import type {Cases, CasesWithName} from '../../../stories/tests-factory/models'; | ||
import type {CardProps} from '../Card'; | ||
|
||
export const sizeCases: Array<CardProps['size']> = ['m', 'l']; | ||
|
||
export const disabledCases: CasesWithName<CardProps['disabled']> = [['disabled', true]]; | ||
|
||
export const selectedCases: CasesWithName<CardProps['selected']> = [['selected', true]]; | ||
|
||
export const selectionViewCases: Cases<CardProps['view']> = ['outlined', 'clear']; | ||
export const containerViewCases: Cases<CardProps['view']> = ['outlined', 'filled', 'raised']; | ||
|
||
export const themeCases: Cases<CardProps['theme']> = [ | ||
'normal', | ||
'info', | ||
'success', | ||
'warning', | ||
'danger', | ||
'utility', | ||
]; |