mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
wait for loading components to disappear before running a11y test
This commit is contained in:
@@ -26,6 +26,12 @@ describe('Homepage', () => {
|
|||||||
// Wait for homepage tag to appear
|
// Wait for homepage tag to appear
|
||||||
cy.get('ds-home-page').should('be.visible');
|
cy.get('ds-home-page').should('be.visible');
|
||||||
|
|
||||||
|
// Wait for at least one loading component to show up
|
||||||
|
cy.get('ds-loading').should('exist');
|
||||||
|
|
||||||
|
// Wait until all loading components have disappeared
|
||||||
|
cy.get('ds-loading').should('not.exist');
|
||||||
|
|
||||||
// Analyze <ds-home-page> for accessibility issues
|
// Analyze <ds-home-page> for accessibility issues
|
||||||
testA11y('ds-home-page');
|
testA11y('ds-home-page');
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user