cypress-axe
cypress-axe copied to clipboard
Error while running the plugin in cypress
While running my cypress e2e test, I'm getting the below error from the cypress-axe plugin: Cannot read properties of undefined (reading 'run')
Can anyone guide me ?
It's possible this is a duplicate of https://github.com/component-driven/cypress-axe/issues/162
If so, I added a comment on that issue that fixed the issue for me that you might want to check out, but your mileage may vary. Good luck!
I am also seeing something similar to this issue
Cannot read properties of undefined (reading 'run') "cypress-axe": "1.5.0", "cypress": "12.17.4", and also on "cypress": "13.13.1",
describe('check a11y', () => {
it('running a11y on google', () => {
cy.visit(https://www.google.com/);
cy.injectAxe();
cy.checkA11y();
});
});