component-driven / component-driven/cypress-axe

ReferenceError: require is not defined

Open
#170 1 comment 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
641
Forks
90
Avg merge
6h 8m
Merged PRs (30d)
1

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the patch in PR #169 and reproduce the failing accessibility test with the listed cypress-axe, Cypress, and axe-core versions. Done means the test no longer raises “ReferenceError: require is not defined” during injectAxe and accessibility checks can run successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
cypress, typescript
Domain
accessibility, testing-qa
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.