2020-12-13 21:35:45 +00:00
|
|
|
import {
|
|
|
|
visitAndApproveStorage
|
|
|
|
} from '../../support/ui-test-helper.js';
|
|
|
|
|
2020-07-26 20:48:59 +00:00
|
|
|
describe('UI - Accessibility', function () {
|
2019-11-23 13:02:51 +00:00
|
|
|
beforeEach(() => {
|
2020-12-13 21:35:45 +00:00
|
|
|
visitAndApproveStorage();
|
2019-11-23 13:02:51 +00:00
|
|
|
cy.injectAxe();
|
|
|
|
});
|
|
|
|
// https://www.npmjs.com/package/cypress-axe
|
2021-05-09 17:29:45 +00:00
|
|
|
it.skip('Has no detectable a11y violations on load', () => {
|
2019-11-23 13:02:51 +00:00
|
|
|
// Configure aXe and test the page at initial load
|
|
|
|
cy.configureAxe({
|
|
|
|
// Todo: Reenable when have time to fix
|
|
|
|
// See https://www.deque.com/axe/axe-for-web/documentation/api-documentation/#user-content-parameters-1
|
2021-05-12 23:00:09 +00:00
|
|
|
rules: [ {
|
2019-11-23 13:02:51 +00:00
|
|
|
id: 'meta-viewport',
|
|
|
|
enabled: false
|
2021-05-12 23:00:09 +00:00
|
|
|
} ]
|
2019-11-23 13:02:51 +00:00
|
|
|
/*
|
|
|
|
branding: {
|
|
|
|
brand: String,
|
|
|
|
application: String
|
|
|
|
},
|
|
|
|
reporter: 'option',
|
|
|
|
checks: [Object],
|
|
|
|
rules: [Object],
|
|
|
|
locale: Object
|
|
|
|
*/
|
|
|
|
});
|
2020-07-26 18:11:18 +00:00
|
|
|
cy.checkA11y(
|
|
|
|
{},
|
|
|
|
{
|
|
|
|
rules: {
|
2021-05-12 23:00:09 +00:00
|
|
|
'label-title-only': { enabled: false },
|
|
|
|
'page-has-heading-one': { enabled: false },
|
|
|
|
region: { enabled: false },
|
|
|
|
'scrollable-region-focusable': { enabled: false }
|
2020-07-26 18:11:18 +00:00
|
|
|
}
|
2020-07-31 23:23:28 +00:00
|
|
|
}
|
|
|
|
);
|
2019-11-23 13:02:51 +00:00
|
|
|
});
|
|
|
|
});
|