-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1181 from securityscorecard/next
🚀 Next release
- Loading branch information
Showing
32 changed files
with
1,353 additions
and
549 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
Binary file modified
BIN
+2 Bytes
(100%)
.storybook/image-snapshots/expected/Iconography_List_List.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.2 KB
.storybook/image-snapshots/expected/components_Callout_Sized Icon.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 modified
BIN
-31 Bytes
(100%)
.storybook/image-snapshots/expected/components_Card_With Icon Only Action.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
.storybook/image-snapshots/expected/components_FileSelector_Area Size.png
Binary file not shown.
Binary file removed
BIN
-8.14 KB
.storybook/image-snapshots/expected/components_FileSelector_Compact Size.png
Binary file not shown.
Binary file added
BIN
+23.6 KB
.storybook/image-snapshots/expected/components_FileSelector_Dark Mode.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 modified
BIN
+12 KB
(250%)
.storybook/image-snapshots/expected/components_FileSelector_Disabled.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.43 KB
.storybook/image-snapshots/expected/components_FileSelector_Fill Size.png
Binary file not shown.
Binary file removed
BIN
-4.83 KB
.storybook/image-snapshots/expected/components_FileSelector_Only Click.png
Binary file not shown.
Binary file removed
BIN
-5.91 KB
.storybook/image-snapshots/expected/components_FileSelector_Only Drag.png
Binary file not shown.
Binary file added
BIN
+22.2 KB
.storybook/image-snapshots/expected/components_FileSelector_Sizes.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 modified
BIN
+13.1 KB
(280%)
.storybook/image-snapshots/expected/components_FileSelector_With Error.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 modified
BIN
+231 Bytes
(100%)
.storybook/image-snapshots/expected/components_Icon_Flip.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import type { TestRunnerConfig } from '@storybook/test-runner'; | ||
import { getStoryContext } from '@storybook/test-runner'; | ||
import { injectAxe, checkA11y, configureAxe } from 'axe-playwright'; | ||
|
||
const config: TestRunnerConfig = { | ||
async preVisit(page) { | ||
await injectAxe(page); | ||
}, | ||
async postVisit(page, context) { | ||
const storyContext = await getStoryContext(page, context); | ||
const a11yParams = storyContext.parameters?.a11y | ||
|
||
if (a11yParams?.disable) { | ||
return; | ||
} | ||
await configureAxe(page, { | ||
rules: a11yParams?.config?.rules, | ||
}); | ||
|
||
await checkA11y(page, '#storybook-root', { | ||
detailedReport: true, | ||
detailedReportOptions: { | ||
html: true, | ||
}, | ||
verbose: false, | ||
axeOptions: { | ||
runOnly: ['wcag21aa','wcag22aa','best-practice','EN-301-549'] | ||
}, | ||
}, true, 'v2'); | ||
}, | ||
}; | ||
|
||
export default config; |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.