Skip to content

Promote 0.23.0 to stable #563

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 16 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
support a11y disable parameter
  • Loading branch information
yannbf committed May 1, 2025
commit ce1522eb81a4e0ca35bfcaac672111e86e85ec7b
4 changes: 3 additions & 1 deletion src/setup-page-script.ts
Original file line number Diff line number Diff line change
@@ -449,9 +449,11 @@ async function __test(storyId: string): Promise<any> {
return;
} else if (data?.reporters) {
const story = getStory();
const a11yTestParameter = story?.parameters?.a11y?.test;
const a11yParameter = story?.parameters?.a11y;
const a11yTestParameter = a11yParameter?.test;
const a11yReport = data.reporters.find((reporter: any) => reporter.type === 'a11y');
if (
!a11yParameter?.disable &&
a11yReport.result?.violations?.length > 0 &&
(a11yTestParameter === 'error' || a11yTestParameter === 'todo')
) {