component-driven / component-driven/cypress-axe

Error: Arguments are invalid whening passing Options object in cy.checkA11y

Open
#61 0 comments 1 reaction 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

Hello there,

Im using cypress with typescript and when i set the variable:

const A11yConfig: Options = {
  includedImpacts: ["critical"],
  runOnly: {
    type: "tag",
    values: ["section508"]
  }
}; 

Then, i use the cy.checkA11y(A11yConfig), when i run the tests an error happens:

axe.run arguments are invalid

Am i doing something wrong?

Thanks!

Versions:
"cypress": "^4.12.1"
"@types/cypress-axe": "^0.8.0"
"axe-core": "^3.5.5"

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 the reported TypeScript Options value and cy.checkA11y(A11yConfig) call, reproducing the axe.run arguments are invalid error with the listed Cypress, @types/cypress-axe, and axe-core versions. Done means the cause and supported usage or compatibility requirement are identified and captured.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.