Skip to content
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

refactor(accessibility testing): automates generation of story ids for accessiblity testing #252

Conversation

calebtr-metro
Copy link
Collaborator

Updates a11y script to generate a list of stories and uses that list for accessibility testing.
Allows for ignoring stories in accessibility testing.

GH-151

What:

Removes the need to manually maintain a list of stories for accessibility testing. Allows projects to manually ignore specific stories in accessibility testing.

Why:

This change reduces cognitive load on developers as they no longer have to manually maintain the list of components to be tested for accessibility.

How:

Leverages Storybook's ability to provide a JSON object containing a project's stories (https://storybook.js.org/docs/react/sharing/storybook-composition#improve-your-storybook-composition).

h/t philwolstenholme for providing the script and documentation at (#151 (comment)).

To Test:

  • make sure you have components in the project
  • npm run a11y

…r accessiblity testing

Updates a11y script to generate a list of stories and uses that list for accessibliity testing.
Allows for ignoring stories in accessibility testing.

emulsify-dsGH-151
@calebtr-metro
Copy link
Collaborator Author

Closing this PR, as the issue has been moved to Compound. A new PR will be created for that project.

Emulsify Project automation moved this from In progress to Done May 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

1 participant