We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I am trying to disable/exclude color-contrast only on disabled fields in cypress-axe. Is it possible?
const off = [ 'html-has-lang', 'landmark-one-main', 'page-has-heading-one', 'region', ]; // config: https://github.com/component-driven/cypress-axe#cyconfigureaxe // context, options: https://github.com/component-driven/cypress-axe#cychecka11y export default ( node = null, config = {rules: []}, {context = null, options = null} = { context: null, options: null, }, delay = 0 ) => { init({ ...config, rules: off .map(id => ({ id, enabled: false, })) .concat(config.rules), }); // add a .wait to make sure a render cycle is run before checkA11y so that // the styles for the element(s) can be applied before a11y tests are executed return mount(node).wait(delay).checkA11y(context, options, terminalLog); };
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi, I am trying to disable/exclude color-contrast only on disabled fields in cypress-axe. Is it possible?
The text was updated successfully, but these errors were encountered: