1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-06 00:13:28 +00:00

[CL-301] Enable Storybook test runner. Run a11y tests also (#14646)

* Enable Storybook test runner. Run a11y tests also

* no need to return checkA11y function

* add back decorator removed in error

* add test runner to our ownership

* add axe-playwright to our ownership
This commit is contained in:
Bryan Cunningham
2025-05-12 11:50:29 -04:00
committed by GitHub
parent 2487e9b98d
commit 355bddc6c9
6 changed files with 2062 additions and 151 deletions

View File

@@ -26,6 +26,13 @@ const preview: Preview = {
wrapperDecorator,
],
parameters: {
a11y: {
element: "#storybook-root",
manual: true,
options: {
runOnly: ["section508", "wcag2a", "wcag2aa", "wcag21a", "wcag21aa", "wcag22aa"],
},
},
controls: {
matchers: {
color: /(background|color)$/i,