Skip to content

Commit

Permalink
Merge pull request #3460 from tdonohue/fix_collection_e2e_test
Browse files Browse the repository at this point in the history
[dspace-7_x] Fix Collection Page e2e test. Wait on Recent Submissions
  • Loading branch information
tdonohue authored Oct 16, 2024
2 parents f749ade + 8c88f70 commit 7f1e267
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cypress/e2e/collection-page.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,15 @@ import { testA11y } from 'cypress/support/utils';
describe('Collection Page', () => {

it('should pass accessibility tests', () => {
cy.intercept('POST', '/server/api/statistics/viewevents').as('viewevent');

// Visit Collections page
cy.visit('/collections/'.concat(Cypress.env('DSPACE_TEST_COLLECTION')));

// Wait for the "viewevent" to trigger on the Collection page.
// This ensures our <ds-collection-page> tag is fully loaded, as the <ds-view-event> tag is contained within it.
cy.wait('@viewevent');

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

Expand Down

0 comments on commit 7f1e267

Please sign in to comment.