addon-a11y not working on latest next
See original GitHub issueDescribe the bug
@storybook/addon-a11y not reporting a11y test results on next branch . It shows 0 passes and 0 violations on any story regardless of decorator being set or not.
To Reproduce
- Checkout 
nextbranch - Start the 
official-storybookkitchen sink app or install/register add-on to any other app. - Open any of the 
a11ystories with decorator set. - Go to 
Accessibilitypanel. - See 0 results on both passes/violations.
 
Expected behavior Should display amount of test passes or violations respectively in each tab.
Screenshots

Code
It’s related to the runA11yCheck function on the addon’s declaration and the DOM being selected to run the aXe tests on:
const runA11yCheck = () => {
  const channel = addons.getChannel();
  const infoWrapper = document.getElementById('story-root').children;
  const wrapper = document.getElementById('root');
  axe.reset();
  axe.configure(axeOptions);
  axe
    .run(infoWrapper || wrapper)
    .then(results => channel.emit(CHECK_EVENT_ID, results), logger.error);
};
System:
- Browser: any
 - Framework: all
 - Addons: a11y
 - Version: 4.0.9
 
Additional context Tried this on some of the other kitchen sink apps with same result.
Issue Analytics
- State:
 - Created 5 years ago
 - Comments:11 (6 by maintainers)
 
Top Results From Across the Web
addon-a11y not working on latest next · Issue #4889 - GitHub
Describe the bug @storybook/addon-a11y not reporting a11y test results on next branch . It shows 0 passes and 0 violations on any story ......
Read more >@storybook/addon-a11y - npm
Latest version: 6.5.15, last published: 3 days ago. Start using @storybook/addon-a11y in your project by running `npm i ...
Read more >@storybook/addon-a11y | Yarn - Package Manager
Release Process · Merge all PRs into next , which is the default branch. · Every week: release patch releases off main to...
Read more >Accessibility testing - Storybook for React Apps
Addon-a11y #. The accessibility addon is very famous in the Storybook community. It helps you develop more accessible components by running accessibility tests...
Read more >Storybook addon accesibility not initialising, error ... - Issuehunt
Describe the bug I've installed https://storybook.js.org/addons/@storybook/addon-a11y using the recommended method in the docs, but it does not ever load ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

The
addon-a11yplugin also appears to be broken in the4.1.1release now - displaying0 passesand0 violationson all stories.Could we include that in 4.1.x release?