component-driven / cypress-axe

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

Where can I find information on adding Custom Rules for aXe #45

Closed kamal2222ahmed closed 4 years ago

kamal2222ahmed commented 4 years ago

axe-core has rules provided at https://github.com/dequelabs/axe-core/tree/develop/lib/rules but could not find an example custom json to append custom rules. What I want to do is to manually test a site using Trusted Tester Test Process, and add the test to the custom list of tests with expected / actual type assertions, so as the custom tests grow in size the amount of time needed to test against trusted tester tests, manually is reduced.

michaeljaltamirano commented 4 years ago

@kamal2222ahmed I think passing in custom objects to the rules property of cy.configureAxe might be what you want.