component-driven / cypress-axe

Test accessibility with axe-core in Cypress
MIT License
622 stars 86 forks source link

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

Open araujosnathan opened 4 years ago

araujosnathan commented 4 years ago

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"