Skip to content

Commit

Permalink
revert adding interceptor as not reliable on remote test
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancescoMolinaro committed Oct 10, 2024
1 parent 7cf7749 commit 6388613
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions cypress/e2e/collection-page.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
// <ds-collection-page> tag must be loaded
cy.get('ds-collection-page').should('be.visible');

// Analyze <ds-collection-page> for accessibility issues
testA11y('ds-collection-page');
});
it('should pass accessibility tests', () => {
cy.visit('/collections/'.concat(Cypress.env('DSPACE_TEST_COLLECTION')));

// <ds-collection-page> tag must be loaded
cy.get('ds-collection-page').should('be.visible');

// Analyze <ds-collection-page> for accessibility issues
testA11y('ds-collection-page');
});
});

0 comments on commit 6388613

Please sign in to comment.