cypress-axe icon indicating copy to clipboard operation
cypress-axe copied to clipboard

Error while running the plugin in cypress

Open Radhey2040 opened this issue 2 years ago • 2 comments

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 ?

Radhey2040 avatar Aug 04 '23 20:08 Radhey2040

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!

cqc-dave avatar Sep 08 '23 17:09 cqc-dave

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(); }); });

artipsingh avatar Oct 18 '23 18:10 artipsingh