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

Storybook 6.4 support #46

Merged
merged 9 commits into from Nov 29, 2021
Merged

Storybook 6.4 support #46

merged 9 commits into from Nov 29, 2021

Conversation

ahuth
Copy link
Collaborator

@ahuth ahuth commented Nov 4, 2021

Updates to work with Storybook 6.4. Fixes #42.

@ahuth ahuth force-pushed the storybook-6.4 branch 4 times, most recently from 369431e to 1f8325a Compare November 5, 2021 15:37
@ahuth ahuth mentioned this pull request Nov 8, 2021
@ahuth ahuth force-pushed the storybook-6.4 branch 2 times, most recently from af56fe7 to 4e6f590 Compare November 12, 2021 17:12
This is the downside to relying on Storybook's internal APIs... non-breaking updates can break how axe-storybook-testing works.

I still think it's worth it, though. It's the best, easiest, and most performant way I could come up with to actually render and iterate through all the stories in a storybook.
So that they do not ignore legit typescript errors.
Wait until a story has truly "completed" rendering, which we can see at https://github.com/storybookjs/storybook/blob/06bf39e29b517650b303c1f4fa4fbf2697ad3ce1/lib/preview-web/src/PreviewWeb.tsx#L604.

The main use case for this is waiting for the new "play" functions to be finished before starting the axe checks.
@ahuth ahuth force-pushed the storybook-6.4 branch 4 times, most recently from 1f1a9f1 to 013cbee Compare November 29, 2021 14:45
@ahuth ahuth merged commit 17226d7 into main Nov 29, 2021
@ahuth ahuth deleted the storybook-6.4 branch November 29, 2021 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Storybook 6.4 support
1 participant