-
Notifications
You must be signed in to change notification settings - Fork 791
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
"Expect axe._selectorData to be set up" console errors #1867
Comments
This is very likely because axe is started a second time before it completed the first. Axe-core can't have multiple runs going at the same time. @straker and I discussed last week if we could put together some kind of queue, so that axe-core doesn't start a run while another is still going. I think that's the best way to solve this. |
I am also seeing this error after upgrading to 3.4.0. Did not see this error with 3.3.1. |
@mohanraj-r are you also using react-axe, or something else? |
@WilcoFiers I am using it via https://github.com/nickcolley/jest-axe on some custom components (not react) |
@mohanraj-r Are you kicking off multiple axe.run() calls at the same time? That's not supported. You need to await a run before you start the next. You can do that pretty easily just doing |
@WilcoFiers Yes the |
Btw do you know why this is happening only in recent versions of axe ? |
@jeankaplansky docs needed about how |
@jeankaplansky , is this documented? If yes , can you please mension the link here, I will verify and close this ticket. |
Apart from release doc, there is no specific axe related documentation to verify, so closing this ticket |
I'm getting the following error in the browser console when running aXe in my React app:
I saw this was reported on the react-axe repository, but it appears the root issue is in axe-core. I saw that the selector code had minor changes in 3.4.0 released today, but they did not fix the issue for me.
I saw similar, possibly related issues here (#1041 and #1084), but I wasn't sure if they were true duplicates. If so, I'll throw my +1 into those tickets for a fix.
Versions and environment
[email protected]
(also tested with 3.3.2)[email protected]
[email protected]
Thanks!
The text was updated successfully, but these errors were encountered: