forked from hazza/dspace-angular
Add basic accessibility scan for most public pages. Disable any a11y tests with known issues
This commit is contained in:
@@ -20,18 +20,13 @@ describe('Homepage', () => {
|
||||
cy.url().should('include', 'query=' + encodeURI(queryString));
|
||||
});
|
||||
|
||||
// it('should pass accessibility tests', () => {
|
||||
// // first must inject Axe into current page
|
||||
// cy.injectAxe();
|
||||
it('should pass accessibility tests', () => {
|
||||
cy.injectAxe();
|
||||
|
||||
// // Analyze entire page for accessibility issues
|
||||
// // NOTE: this test checks accessibility of header/footer as well
|
||||
// cy.checkA11y({
|
||||
// exclude: [
|
||||
// ['#klaro'], // Klaro plugin (privacy policy popup) has color contrast issues
|
||||
// ['#search-navbar-container'], // search in navbar has duplicative ID. Will be fixed in #1174
|
||||
// ['.dropdownLogin'] // "Log in" link in header has color contrast issues
|
||||
// ],
|
||||
// });
|
||||
// });
|
||||
// Wait for homepage tag to appear
|
||||
cy.get('ds-home-page').should('be.visible');
|
||||
|
||||
// Analyze <ds-home-page> for accessibility issues
|
||||
cy.checkA11y('ds-home-page');
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user