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

ReferenceError: require is not defined

Open linediconsine opened this issue 1 year ago • 1 comments

Hi and thanks for develop and maintaining cypress-axe, I see an error with this versions

 "cypress-axe": "^1.5.0",
  "cypress": "^13.6.1",
  "axe-core": "^4.8.2",

Accessibility test are failing with

 [positive] Loader component should have no accessibility violations:

ReferenceError: require is not defined
at exports.injectAxe (http://localhost:6060/__cypress/tests?p=test/integration/support/index.ts:27:190)

I created this patch https://github.com/component-driven/cypress-axe/pull/169

That seem to solve the problem

linediconsine avatar Jan 05 '24 14:01 linediconsine

I'm experiencing the same error. Is it possible to merge the PR with the fix.

aneta-kjeldsen avatar May 23 '24 07:05 aneta-kjeldsen