diff --git a/cypress/e2e/collection-page.cy.ts b/cypress/e2e/collection-page.cy.ts index ff32dadb112..d12536d332a 100644 --- a/cypress/e2e/collection-page.cy.ts +++ b/cypress/e2e/collection-page.cy.ts @@ -2,14 +2,13 @@ import { testA11y } from 'cypress/support/utils'; describe('Collection Page', () => { - it('should pass accessibility tests', () => { - cy.visit('/collections/'.concat(Cypress.env('DSPACE_TEST_COLLECTION'))); - cy.intercept('GET','/server/api/dso/find?uuid='.concat(Cypress.env('DSPACE_TEST_COLLECTION'))).as('dso'); - cy.wait('@dso'); - // tag must be loaded - cy.get('ds-collection-page').should('be.visible'); - - // Analyze for accessibility issues - testA11y('ds-collection-page'); - }); + it('should pass accessibility tests', () => { + cy.visit('/collections/'.concat(Cypress.env('DSPACE_TEST_COLLECTION'))); + + // tag must be loaded + cy.get('ds-collection-page').should('be.visible'); + + // Analyze for accessibility issues + testA11y('ds-collection-page'); + }); });