mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-08 02:24:11 +00:00
Add logging for violations & testA11y() in utils.ts. Use that method everywhere else
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import { testA11y } from 'cypress/support/utils';
|
||||
|
||||
describe('Homepage', () => {
|
||||
beforeEach(() => {
|
||||
// All tests start with visiting homepage
|
||||
@@ -21,12 +23,10 @@ describe('Homepage', () => {
|
||||
});
|
||||
|
||||
it('should pass accessibility tests', () => {
|
||||
cy.injectAxe();
|
||||
|
||||
// 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');
|
||||
testA11y('ds-home-page');
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user