component-driven / component-driven/cypress-axe

I am facing below error while running tests cases for a11y.

Open
#95 0 comments 0 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

Oops...we found an error preparing this test file:

/app/cypress/support/index.js

The error was:

Error: Can't walk dependency graph: Cannot find module 'cypress-axe' from '/app/cypress/support'
required by /app/cypress/support/index.js

This occurred while Cypress was compiling and bundling your test code. This is usually caused by:

  • A missing file or dependency
  • A syntax error in the file or one of its dependencies

Fix the error in your code and re-run your tests.

System configuration:- Ubuntu 18.04 LTS (windows 10)
using below versions.
"axe-core": "^4.1.4",
"cypress": "^4.12.1",
"cypress-axe": "^0.8.2",

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 with cypress/support/index.js and the reported Cypress dependency-graph error. Check how cypress-axe is made available when the accessibility tests run, then rerun the tests in the stated environment. Done means Cypress can compile the test file without the missing-module error.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.