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

a11y addon tests don't run on story load or change #5754

Closed
mattrothenberg opened this issue Feb 25, 2019 · 1 comment
Closed

a11y addon tests don't run on story load or change #5754

mattrothenberg opened this issue Feb 25, 2019 · 1 comment

Comments

@mattrothenberg
Copy link
Contributor

Describe the bug
When using the a11y addon, I expect the tests for a particular story to run automatically on initial page load, and then on any subsequent story change.

I am using the global decorator, not individual decorators per components.

Currently, I have to manually press Rerun test in order for the tests to run at all.

To Reproduce
Steps to reproduce the behavior:

  1. Spin up Storybook
  2. Visit http://localhost:9001
  3. Observe that there are no violations OR passes
  4. Press Rerun Test
  5. See that there are now violations/passes.

Expected behavior
I expect the tests to be run automatically when a story loads.

System:

  • OS: 10.14.3
  • Device: 2018 MBP
  • Browser: Chrome 72.0.3626.109
  • Framework: React
  • Addons: a11y
  • Version: 4.2.0-alpha.10

Additional context
I'm not using the latest version in the 4 series, as per this issue: #5078

@mattrothenberg
Copy link
Contributor Author

FWIW, this is now working beautifully after updating to latest release candidate ❤️

@shilman shilman closed this as completed Mar 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants