mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
Merge pull request #3460 from tdonohue/fix_collection_e2e_test
[dspace-7_x] Fix Collection Page e2e test. Wait on Recent Submissions
This commit is contained in:
@@ -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');
|
||||
|
||||
|
Reference in New Issue
Block a user