-
Notifications
You must be signed in to change notification settings - Fork 86
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
Error invoking the cy.injectAxe() command with "cypress": "^5.5.0" and "cypress-axe": "^0.10.0" #73
Comments
Was literally just about to log the same thing. I updated from v0.9.1 to v0.10.0 and got this, only update I made to my dependencies. I'm using Cypress v5.5.0 and v0.9.1 worked perfectly with it. This update breaks it. |
It does work in the example I've added to the repository. Not sure what might be different? https://github.com/component-driven/cypress-axe/tree/master/cypress |
@sapegin I'm not sure either. I just tried to set up an easily reproducible scenario using CRA and had no issues. In my case, where I do have the issues, I'm just running cypress against Storybook for a UI library I developed so nothing crazy in terms of setup. I am also using |
I am using TypeScript and cucumber to write the Cypress tests. (see above screenshot with my "package.json" file) |
We're experiencing the same issue on Cypress 4.12.0: DFE-Digital/apply-for-teacher-training-tests@44911ed |
@tvararu how can I run it? |
@sapegin In my case, I believe I have found the source of the issue. It stems from this issue and the need to include the Unfortunately, without that require statement, the other problem shows up thats outlined in that issue for those of us extending browserslist configs. This works fine on the prior (v0.9.1) version of cypress-axe, though. |
@patheard workaround worked for me |
For the record, the workaround did not work for me, and this is still an issue. Wondering if we can discuss further? I am getting the error that "t is not defined" UPDATE UPDATE 2 |
We are also seeing this issue. We've downgraded to 0.9.1 (as mentioned by @reintroducing) and everything is fine. We haven't tried the work-around. |
Same issue.
Using angular 11 Update:
is in index.js or the .js file with the code above is referenced in it. In the end of the day is still a workaround - so we can keep the issue open :) |
Not sure if this was because I was importing my commands file from |
Has anyone worked out what the issue is? I get this problem simply after updating cypress-axe to the latest version, everything works on older versions. |
Same problem here - tracked it down to adding Workaround mentioned by @marcobeltempo fixed it: #6 (comment) |
This is an incredibly obvious suggestion, but I think there are a fair number of people who throw cypress/support in the |
Hi All,
I am trying to setup Ally in my project but I am getting below error running an initial/simple test:
Do you know where is the issue? is due to Cypress 5? it seems that it is supported based on the documentation.Do you know which with versions runs properly?
Tere you have my configuration and script:
The text was updated successfully, but these errors were encountered: