From 7cf7749367ce46fe9c9c7e3959f60e0f5aeec5ba Mon Sep 17 00:00:00 2001 From: FrancescoMolinaro Date: Thu, 10 Oct 2024 17:32:46 +0200 Subject: [PATCH] correct intercept to dso resolved for route --- cypress/e2e/collection-page.cy.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress/e2e/collection-page.cy.ts b/cypress/e2e/collection-page.cy.ts index bec12e7d57b..ff32dadb112 100644 --- a/cypress/e2e/collection-page.cy.ts +++ b/cypress/e2e/collection-page.cy.ts @@ -4,8 +4,8 @@ describe('Collection Page', () => { it('should pass accessibility tests', () => { cy.visit('/collections/'.concat(Cypress.env('DSPACE_TEST_COLLECTION'))); - cy.intercept('GET','server/api/core/collections/'.concat(Cypress.env('DSPACE_TEST_COLLECTION'))).as('collection'); - cy.wait('@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');