component-driven / component-driven/cypress-axe

How to use the cypress-axe with component-testing (angular)

Open
#159 7 comments 4 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

It seems you are unable to run cy.visit('/') within a component test (angular).

So I am unable to run cy.injectAxe() and cy.checkA11y().

Any suggestions would be appreciated. I was unsure how to flag this as a question, rather than an issue.

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

Reproduce the Angular component-test scenario described in the issue, focusing on cy.visit('/'), cy.injectAxe(), and cy.checkA11y(). The issue names no source file or test, so first determine whether this is a Cypress limitation or a cypress-axe integration problem; done should be a confirmed usage path or a clearly documented limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, cypress, typescript
Domain
frontend, testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.