open-nomad/ui/tests/helpers/a11y-audit.js
Buck Doyle 7bed453de3
Add acceptance test accessibility auditing and fixes (#8455)
This introduces ember-a11y-testing to acceptance tests via a helper
wrapper that allows us to globally ignore rules that we can address
separately. It also adds fixes for the aXe rules that were failing.
2020-07-28 12:59:14 -05:00

17 lines
359 B
JavaScript

import a11yAudit from 'ember-a11y-testing/test-support/audit';
export default async function defaultA11yAudit(...overriddenRules) {
const rules = {
'color-contrast': {
enabled: false
},
'heading-order': {
enabled: false
}
};
overriddenRules.forEach(rule => rules[rule] = { enabled: false });
await a11yAudit({rules});
}