Open kitsguru opened 1 year ago
In the support, folder create a file e.g say axe-cofig.js and in that file create an object like this
export const defaultAxeConfiguration = {
rules:[ {
id: 'color-contrast', enabled: true,
}],
disableOtherRules: true,
};
and write your beforeEach like this
beforeEach(()=>{ cy.visit('/') cy.injectAxe() cy.configureAxe(defaultAxeConfiguration) })
I have a series of specs for different sections and modules of my app. I would like to configure checkA11y in one location for all specs.
This works within each test
I tried to set the configuration in support/index.js but I get an error
I am unsure where to set this up correctly.