c2ce0a1dec
This makes use of the PR I recently had merged to eslint-plugin-ember-a11y-testing to add linting that ensures an accessibility audit is called at least once per acceptance test file. When I have added linting for component tests, it can apply there too. I added exclusions for the filesystem browser tests, which are covered by behaviors/fs and for the search test which will involve significant overrides to Ember Power Select default templates.
29 lines
588 B
JavaScript
29 lines
588 B
JavaScript
module.exports = {
|
|
globals: {
|
|
server: true,
|
|
selectChoose: true,
|
|
selectSearch: true,
|
|
removeMultipleOption: true,
|
|
clearSelected: true,
|
|
getCodeMirrorInstance: true,
|
|
},
|
|
env: {
|
|
embertest: true,
|
|
},
|
|
overrides: {
|
|
files: ['acceptance/**/*-test.js'],
|
|
plugins: ['ember-a11y-testing'],
|
|
rules: {
|
|
'ember-a11y-testing/a11y-audit-called': 'error',
|
|
},
|
|
settings: {
|
|
'ember-a11y-testing': {
|
|
auditModule: {
|
|
package: 'nomad-ui/tests/helpers/a11y-audit',
|
|
exportName: 'default',
|
|
},
|
|
},
|
|
},
|
|
},
|
|
};
|