component-driven / cypress-axe

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

Configure includedImpacts in cy.configureAxe instead of cy.checkA11y #161

Open rebeccadavidsson opened 1 year ago

rebeccadavidsson commented 1 year ago

It is now possible to use a custom includedImpacts key in the cy.checkA11y() function. Is it possible to use this key in cy.configureAxe()? Such as:

cy.configureAxe({
   includedImpacts: ['critical']
})

or

cy.configureAxe({
   rules: [{ id: 'includedImpacts',  value:  ['critical'] }]
})

This would avoid some duplication.