Skip to content

Commit

Permalink
Add interceptor for collection page to avoid timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancescoMolinaro committed Oct 10, 2024
1 parent 7ac14da commit ba2570b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cypress/e2e/collection-page.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ describe('Collection Page', () => {

it('should pass accessibility tests', () => {
cy.visit('/collections/'.concat(Cypress.env('DSPACE_TEST_COLLECTION')));

// <ds-collection-page> tag must be loaded
cy.intercept('GET','server/api/core/collections/'.concat(Cypress.env('DSPACE_TEST_COLLECTION'))).as('collection');
cy.wait('@collection');
// <ds-collection-page> tag must be loaded
cy.get('ds-collection-page').should('be.visible');

// Analyze <ds-collection-page> for accessibility issues
Expand Down

0 comments on commit ba2570b

Please sign in to comment.