7bed453de3
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.
17 lines
359 B
JavaScript
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});
|
|
}
|