-
Notifications
You must be signed in to change notification settings - Fork 538
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(e2e): add tests for FormControl (#5201)
* test(e2e): add tests for FormControl * test: prefix describe with test * chore: update story id * test(vrt): update snapshots * fix(FormControl.Caption): update color when disabled * chore: add changeset * test(vrt): update snapshots * chore: remove unused imports --------- Co-authored-by: Josh Black <joshblack@users.noreply.github.com>
- Loading branch information
Showing
149 changed files
with
157 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@primer/react": patch | ||
--- | ||
|
||
Update the foreground color for FormControl.Caption to use the control tokens when disabled |
Binary file added
BIN
+28.1 KB
...Control.test.ts-snapshots/FormControl-Custom-Required-dark-colorblind-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
+28 KB
...FormControl.test.ts-snapshots/FormControl-Custom-Required-dark-dimmed-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
+28 KB
...trol.test.ts-snapshots/FormControl-Custom-Required-dark-high-contrast-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
+28.1 KB
...onents/FormControl.test.ts-snapshots/FormControl-Custom-Required-dark-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
+28.1 KB
...Control.test.ts-snapshots/FormControl-Custom-Required-dark-tritanopia-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
+28 KB
...ontrol.test.ts-snapshots/FormControl-Custom-Required-light-colorblind-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
+28 KB
...rol.test.ts-snapshots/FormControl-Custom-Required-light-high-contrast-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
+28 KB
...nents/FormControl.test.ts-snapshots/FormControl-Custom-Required-light-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
+28 KB
...ontrol.test.ts-snapshots/FormControl-Custom-Required-light-tritanopia-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
+7.31 KB
...nts/FormControl.test.ts-snapshots/FormControl-Default-dark-colorblind-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
+7.3 KB
...ponents/FormControl.test.ts-snapshots/FormControl-Default-dark-dimmed-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
+7.29 KB
.../FormControl.test.ts-snapshots/FormControl-Default-dark-high-contrast-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
+7.31 KB
...ots/components/FormControl.test.ts-snapshots/FormControl-Default-dark-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
+7.31 KB
...nts/FormControl.test.ts-snapshots/FormControl-Default-dark-tritanopia-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
+7.31 KB
...ts/FormControl.test.ts-snapshots/FormControl-Default-light-colorblind-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
+7.32 KB
...FormControl.test.ts-snapshots/FormControl-Default-light-high-contrast-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
+7.31 KB
...ts/components/FormControl.test.ts-snapshots/FormControl-Default-light-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
+7.31 KB
...ts/FormControl.test.ts-snapshots/FormControl-Default-light-tritanopia-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
+12 KB
...Control.test.ts-snapshots/FormControl-Disabled-Inputs-dark-colorblind-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
+11.9 KB
...FormControl.test.ts-snapshots/FormControl-Disabled-Inputs-dark-dimmed-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
+12.3 KB
...trol.test.ts-snapshots/FormControl-Disabled-Inputs-dark-high-contrast-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
+12 KB
...onents/FormControl.test.ts-snapshots/FormControl-Disabled-Inputs-dark-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
+12 KB
...Control.test.ts-snapshots/FormControl-Disabled-Inputs-dark-tritanopia-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
+12.1 KB
...ontrol.test.ts-snapshots/FormControl-Disabled-Inputs-light-colorblind-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
+12.3 KB
...rol.test.ts-snapshots/FormControl-Disabled-Inputs-light-high-contrast-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
+12.1 KB
...nents/FormControl.test.ts-snapshots/FormControl-Disabled-Inputs-light-linux.png
Oops, something went wrong.
Binary file added
BIN
+12.1 KB
...ontrol.test.ts-snapshots/FormControl-Disabled-Inputs-light-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+23 KB
...-snapshots/FormControl-Form-Control-with-Custom-Input-dark-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+22.8 KB
...t.ts-snapshots/FormControl-Form-Control-with-Custom-Input-dark-dimmed-linux.png
Oops, something went wrong.
Binary file added
BIN
+23 KB
...apshots/FormControl-Form-Control-with-Custom-Input-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+23.1 KB
...rol.test.ts-snapshots/FormControl-Form-Control-with-Custom-Input-dark-linux.png
Oops, something went wrong.
Binary file added
BIN
+23.1 KB
...-snapshots/FormControl-Form-Control-with-Custom-Input-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+22.9 KB
...snapshots/FormControl-Form-Control-with-Custom-Input-light-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+22.5 KB
...pshots/FormControl-Form-Control-with-Custom-Input-light-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+22.8 KB
...ol.test.ts-snapshots/FormControl-Form-Control-with-Custom-Input-light-linux.png
Oops, something went wrong.
Binary file added
BIN
+22.8 KB
...snapshots/FormControl-Form-Control-with-Custom-Input-light-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+5.02 KB
...ormControl.test.ts-snapshots/FormControl-Single-Input-dark-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+5.04 KB
...ts/FormControl.test.ts-snapshots/FormControl-Single-Input-dark-dimmed-linux.png
Oops, something went wrong.
Binary file added
BIN
+5.05 KB
...Control.test.ts-snapshots/FormControl-Single-Input-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+5.02 KB
...omponents/FormControl.test.ts-snapshots/FormControl-Single-Input-dark-linux.png
Oops, something went wrong.
Binary file added
BIN
+5.02 KB
...ormControl.test.ts-snapshots/FormControl-Single-Input-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+5 KB
...rmControl.test.ts-snapshots/FormControl-Single-Input-light-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+5.07 KB
...ontrol.test.ts-snapshots/FormControl-Single-Input-light-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+5 KB
...mponents/FormControl.test.ts-snapshots/FormControl-Single-Input-light-linux.png
Oops, something went wrong.
Binary file added
BIN
+5 KB
...rmControl.test.ts-snapshots/FormControl-Single-Input-light-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+14.7 KB
...trol.test.ts-snapshots/FormControl-Validation-Example-dark-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+14.6 KB
...mControl.test.ts-snapshots/FormControl-Validation-Example-dark-dimmed-linux.png
Oops, something went wrong.
Binary file added
BIN
+14.9 KB
...l.test.ts-snapshots/FormControl-Validation-Example-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+14.8 KB
...nts/FormControl.test.ts-snapshots/FormControl-Validation-Example-dark-linux.png
Oops, something went wrong.
Binary file added
BIN
+14.8 KB
...trol.test.ts-snapshots/FormControl-Validation-Example-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+14.8 KB
...rol.test.ts-snapshots/FormControl-Validation-Example-light-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+14.8 KB
....test.ts-snapshots/FormControl-Validation-Example-light-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+14.7 KB
...ts/FormControl.test.ts-snapshots/FormControl-Validation-Example-light-linux.png
Oops, something went wrong.
Binary file added
BIN
+14.7 KB
...rol.test.ts-snapshots/FormControl-Validation-Example-light-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.18 KB
...st.ts-snapshots/FormControl-With-Caption-And-Disabled-dark-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.13 KB
...l.test.ts-snapshots/FormControl-With-Caption-And-Disabled-dark-dimmed-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.32 KB
...ts-snapshots/FormControl-With-Caption-And-Disabled-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.18 KB
...mControl.test.ts-snapshots/FormControl-With-Caption-And-Disabled-dark-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.18 KB
...st.ts-snapshots/FormControl-With-Caption-And-Disabled-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.29 KB
...t.ts-snapshots/FormControl-With-Caption-And-Disabled-light-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.36 KB
...s-snapshots/FormControl-With-Caption-And-Disabled-light-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.29 KB
...Control.test.ts-snapshots/FormControl-With-Caption-And-Disabled-light-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.29 KB
...t.ts-snapshots/FormControl-With-Caption-And-Disabled-light-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.38 KB
...ormControl.test.ts-snapshots/FormControl-With-Caption-dark-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.35 KB
...ts/FormControl.test.ts-snapshots/FormControl-With-Caption-dark-dimmed-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.4 KB
...Control.test.ts-snapshots/FormControl-With-Caption-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.38 KB
...omponents/FormControl.test.ts-snapshots/FormControl-With-Caption-dark-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.38 KB
...ormControl.test.ts-snapshots/FormControl-With-Caption-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.36 KB
...rmControl.test.ts-snapshots/FormControl-With-Caption-light-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.44 KB
...ontrol.test.ts-snapshots/FormControl-With-Caption-light-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.36 KB
...mponents/FormControl.test.ts-snapshots/FormControl-With-Caption-light-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.36 KB
...rmControl.test.ts-snapshots/FormControl-With-Caption-light-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+18.8 KB
...-snapshots/FormControl-With-Checkbox-And-Radio-Inputs-dark-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+18.8 KB
...t.ts-snapshots/FormControl-With-Checkbox-And-Radio-Inputs-dark-dimmed-linux.png
Oops, something went wrong.
Binary file added
BIN
+18.7 KB
...apshots/FormControl-With-Checkbox-And-Radio-Inputs-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+18.8 KB
...rol.test.ts-snapshots/FormControl-With-Checkbox-And-Radio-Inputs-dark-linux.png
Oops, something went wrong.
Binary file added
BIN
+18.8 KB
...-snapshots/FormControl-With-Checkbox-And-Radio-Inputs-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+18.8 KB
...snapshots/FormControl-With-Checkbox-And-Radio-Inputs-light-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+18.5 KB
...pshots/FormControl-With-Checkbox-And-Radio-Inputs-light-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+18.8 KB
...ol.test.ts-snapshots/FormControl-With-Checkbox-And-Radio-Inputs-light-linux.png
Oops, something went wrong.
Binary file added
BIN
+18.8 KB
...snapshots/FormControl-With-Checkbox-And-Radio-Inputs-light-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+20.1 KB
...rol.test.ts-snapshots/FormControl-With-Complex-Inputs-dark-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+20.1 KB
...Control.test.ts-snapshots/FormControl-With-Complex-Inputs-dark-dimmed-linux.png
Oops, something went wrong.
Binary file added
BIN
+20.5 KB
....test.ts-snapshots/FormControl-With-Complex-Inputs-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+20.1 KB
...ts/FormControl.test.ts-snapshots/FormControl-With-Complex-Inputs-dark-linux.png
Oops, something went wrong.
Binary file added
BIN
+20.1 KB
...rol.test.ts-snapshots/FormControl-With-Complex-Inputs-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+20.1 KB
...ol.test.ts-snapshots/FormControl-With-Complex-Inputs-light-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+20.4 KB
...test.ts-snapshots/FormControl-With-Complex-Inputs-light-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+20.1 KB
...s/FormControl.test.ts-snapshots/FormControl-With-Complex-Inputs-light-linux.png
Oops, something went wrong.
Binary file added
BIN
+20.1 KB
...ol.test.ts-snapshots/FormControl-With-Complex-Inputs-light-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+10.5 KB
...l.test.ts-snapshots/FormControl-With-Error-Validation-dark-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+10.5 KB
...ntrol.test.ts-snapshots/FormControl-With-Error-Validation-dark-dimmed-linux.png
Oops, something went wrong.
Binary file added
BIN
+10.7 KB
...est.ts-snapshots/FormControl-With-Error-Validation-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+10.5 KB
.../FormControl.test.ts-snapshots/FormControl-With-Error-Validation-dark-linux.png
Oops, something went wrong.
Binary file added
BIN
+10.5 KB
...l.test.ts-snapshots/FormControl-With-Error-Validation-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+10.6 KB
....test.ts-snapshots/FormControl-With-Error-Validation-light-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+10.6 KB
...st.ts-snapshots/FormControl-With-Error-Validation-light-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+10.5 KB
...FormControl.test.ts-snapshots/FormControl-With-Error-Validation-light-linux.png
Oops, something went wrong.
Binary file added
BIN
+10.5 KB
....test.ts-snapshots/FormControl-With-Error-Validation-light-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+4.34 KB
...ntrol.test.ts-snapshots/FormControl-With-Hidden-Label-dark-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+4.32 KB
...rmControl.test.ts-snapshots/FormControl-With-Hidden-Label-dark-dimmed-linux.png
Oops, something went wrong.
Binary file added
BIN
+4.36 KB
...ol.test.ts-snapshots/FormControl-With-Hidden-Label-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+4.34 KB
...ents/FormControl.test.ts-snapshots/FormControl-With-Hidden-Label-dark-linux.png
Oops, something went wrong.
Binary file added
BIN
+4.34 KB
...ntrol.test.ts-snapshots/FormControl-With-Hidden-Label-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+4.31 KB
...trol.test.ts-snapshots/FormControl-With-Hidden-Label-light-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+4.39 KB
...l.test.ts-snapshots/FormControl-With-Hidden-Label-light-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+4.31 KB
...nts/FormControl.test.ts-snapshots/FormControl-With-Hidden-Label-light-linux.png
Oops, something went wrong.
Binary file added
BIN
+4.31 KB
...trol.test.ts-snapshots/FormControl-With-Hidden-Label-light-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+10.4 KB
...rol.test.ts-snapshots/FormControl-With-Leading-Visual-dark-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+10.3 KB
...Control.test.ts-snapshots/FormControl-With-Leading-Visual-dark-dimmed-linux.png
Oops, something went wrong.
Binary file added
BIN
+10.4 KB
....test.ts-snapshots/FormControl-With-Leading-Visual-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+10.4 KB
...ts/FormControl.test.ts-snapshots/FormControl-With-Leading-Visual-dark-linux.png
Oops, something went wrong.
Binary file added
BIN
+10.4 KB
...rol.test.ts-snapshots/FormControl-With-Leading-Visual-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+10.4 KB
...ol.test.ts-snapshots/FormControl-With-Leading-Visual-light-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+10.3 KB
...test.ts-snapshots/FormControl-With-Leading-Visual-light-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+10.4 KB
...s/FormControl.test.ts-snapshots/FormControl-With-Leading-Visual-light-linux.png
Oops, something went wrong.
Binary file added
BIN
+10.4 KB
...ol.test.ts-snapshots/FormControl-With-Leading-Visual-light-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+6.19 KB
...test.ts-snapshots/FormControl-With-Required-Indicator-dark-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+6.19 KB
...rol.test.ts-snapshots/FormControl-With-Required-Indicator-dark-dimmed-linux.png
Oops, something went wrong.
Binary file added
BIN
+6.17 KB
...t.ts-snapshots/FormControl-With-Required-Indicator-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+6.19 KB
...ormControl.test.ts-snapshots/FormControl-With-Required-Indicator-dark-linux.png
Oops, something went wrong.
Binary file added
BIN
+6.19 KB
...test.ts-snapshots/FormControl-With-Required-Indicator-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+6.16 KB
...est.ts-snapshots/FormControl-With-Required-Indicator-light-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+6.2 KB
....ts-snapshots/FormControl-With-Required-Indicator-light-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+6.16 KB
...rmControl.test.ts-snapshots/FormControl-With-Required-Indicator-light-linux.png
Oops, something went wrong.
Binary file added
BIN
+6.16 KB
...est.ts-snapshots/FormControl-With-Required-Indicator-light-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+8.39 KB
...ntrol.test.ts-snapshots/FormControl-With-Select-Panel-dark-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+8.38 KB
...rmControl.test.ts-snapshots/FormControl-With-Select-Panel-dark-dimmed-linux.png
Oops, something went wrong.
Binary file added
BIN
+8.36 KB
...ol.test.ts-snapshots/FormControl-With-Select-Panel-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+8.39 KB
...ents/FormControl.test.ts-snapshots/FormControl-With-Select-Panel-dark-linux.png
Oops, something went wrong.
Binary file added
BIN
+8.39 KB
...ntrol.test.ts-snapshots/FormControl-With-Select-Panel-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+8.41 KB
...trol.test.ts-snapshots/FormControl-With-Select-Panel-light-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+8.45 KB
...l.test.ts-snapshots/FormControl-With-Select-Panel-light-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+8.41 KB
...nts/FormControl.test.ts-snapshots/FormControl-With-Select-Panel-light-linux.png
Oops, something went wrong.
Binary file added
BIN
+8.41 KB
...trol.test.ts-snapshots/FormControl-With-Select-Panel-light-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+11.2 KB
...test.ts-snapshots/FormControl-With-Success-Validation-dark-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+11.1 KB
...rol.test.ts-snapshots/FormControl-With-Success-Validation-dark-dimmed-linux.png
Oops, something went wrong.
Binary file added
BIN
+11 KB
...t.ts-snapshots/FormControl-With-Success-Validation-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+11.2 KB
...ormControl.test.ts-snapshots/FormControl-With-Success-Validation-dark-linux.png
Oops, something went wrong.
Binary file added
BIN
+11.2 KB
...test.ts-snapshots/FormControl-With-Success-Validation-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+11.1 KB
...est.ts-snapshots/FormControl-With-Success-Validation-light-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+11.2 KB
....ts-snapshots/FormControl-With-Success-Validation-light-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+11.2 KB
...rmControl.test.ts-snapshots/FormControl-With-Success-Validation-light-linux.png
Oops, something went wrong.
Binary file added
BIN
+11.1 KB
...est.ts-snapshots/FormControl-With-Success-Validation-light-tritanopia-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 |
---|---|---|
@@ -0,0 +1,104 @@ | ||
import {test, expect} from '@playwright/test' | ||
import {visit} from '../test-helpers/storybook' | ||
import {themes} from '../test-helpers/themes' | ||
|
||
const stories = [ | ||
{ | ||
title: 'Default', | ||
id: 'components-formcontrol--default', | ||
}, | ||
{ | ||
title: 'Custom Required', | ||
id: 'components-formcontrol-features--custom-required', | ||
}, | ||
{ | ||
title: 'Disabled Inputs', | ||
id: 'components-formcontrol-features--disabled-inputs', | ||
}, | ||
{ | ||
title: 'Form Control with Custom Input', | ||
id: 'components-formcontrol-features--form-control-with-custom-input', | ||
}, | ||
{ | ||
title: 'Single Input', | ||
id: 'components-formcontrol-features--single-input', | ||
}, | ||
{ | ||
title: 'Validation Example', | ||
id: 'components-formcontrol-features--validation-example', | ||
}, | ||
{ | ||
title: 'With Checkbox And Radio Inputs', | ||
id: 'components-formcontrol-features--with-checkbox-and-radio-inputs', | ||
}, | ||
{ | ||
title: 'With Complex Inputs', | ||
id: 'components-formcontrol-features--with-complex-inputs', | ||
}, | ||
{ | ||
title: 'With Leading Visual', | ||
id: 'components-formcontrol-features--with-leading-visual', | ||
}, | ||
{ | ||
title: 'With Select Panel', | ||
id: 'components-formcontrol-features--with-select-panel', | ||
}, | ||
{ | ||
title: 'With Caption', | ||
id: 'components-formcontrol-features--with-caption', | ||
}, | ||
{ | ||
title: 'With Caption And Disabled', | ||
id: 'components-formcontrol-features--with-caption-and-disabled', | ||
}, | ||
{ | ||
title: 'With Hidden Label', | ||
id: 'components-formcontrol-features--with-hidden-label', | ||
}, | ||
{ | ||
title: 'With Required Indicator', | ||
id: 'components-formcontrol-features--with-required-indicator', | ||
}, | ||
{ | ||
title: 'With Success Validation', | ||
id: 'components-formcontrol-features--with-success-validation', | ||
}, | ||
{ | ||
title: 'With Error Validation', | ||
id: 'components-formcontrol-features--with-error-validation', | ||
}, | ||
] as const | ||
|
||
test.describe('FormControl', () => { | ||
for (const story of stories) { | ||
test.describe(story.title, () => { | ||
for (const theme of themes) { | ||
test.describe(theme, () => { | ||
test('default @vrt', async ({page}) => { | ||
await visit(page, { | ||
id: story.id, | ||
globals: { | ||
colorScheme: theme, | ||
}, | ||
}) | ||
|
||
// Default state | ||
expect(await page.screenshot({animations: 'disabled'})).toMatchSnapshot( | ||
`FormControl.${story.title}.${theme}.png`, | ||
) | ||
}) | ||
|
||
test('axe @aat', async ({page}) => { | ||
await visit(page, { | ||
id: story.id, | ||
globals: { | ||
colorScheme: theme, | ||
}, | ||
}) | ||
await expect(page).toHaveNoViolations() | ||
}) | ||
}) | ||
} | ||
}) | ||
} | ||
}) |
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