diff --git a/cypress/e2e/collection-create.cy.ts b/cypress/e2e/collection-create.cy.ts index 29f7dd5cac..85ce8cdbc6 100644 --- a/cypress/e2e/collection-create.cy.ts +++ b/cypress/e2e/collection-create.cy.ts @@ -1,6 +1,9 @@ beforeEach(() => { cy.visit('/collections/create?parent='.concat(Cypress.env('DSPACE_TEST_COMMUNITY'))); cy.loginViaForm(Cypress.env('DSPACE_TEST_ADMIN_USER'), Cypress.env('DSPACE_TEST_ADMIN_PASSWORD')); + + // Accept all cookies to make sure cookie window does not block other elements + cy.get('.orejime-Button--save').click(); }); it('should show loading component while saving', () => { diff --git a/cypress/e2e/community-create.cy.ts b/cypress/e2e/community-create.cy.ts index 96bc003ba2..5086f16e8e 100644 --- a/cypress/e2e/community-create.cy.ts +++ b/cypress/e2e/community-create.cy.ts @@ -1,6 +1,9 @@ beforeEach(() => { cy.visit('/communities/create'); cy.loginViaForm(Cypress.env('DSPACE_TEST_ADMIN_USER'), Cypress.env('DSPACE_TEST_ADMIN_PASSWORD')); + + // Accept all cookies to make sure cookie window does not block other elements + cy.get('.orejime-Button--save').click(); }); it('should show loading component while saving', () => { diff --git a/cypress/e2e/my-dspace.cy.ts b/cypress/e2e/my-dspace.cy.ts index 159bb4f5e6..e4f47bd473 100644 --- a/cypress/e2e/my-dspace.cy.ts +++ b/cypress/e2e/my-dspace.cy.ts @@ -44,6 +44,9 @@ describe('My DSpace page', () => { // This page is restricted, so we will be shown the login form. Fill it out & submit. cy.loginViaForm(Cypress.env('DSPACE_TEST_SUBMIT_USER'), Cypress.env('DSPACE_TEST_SUBMIT_USER_PASSWORD')); + // Accept all cookies to make sure cookie window does not block other elements + cy.get('.orejime-Button--save').click(); + // Open the New Submission dropdown cy.get('button[data-test="submission-dropdown"]').click(); // Click on the "Item" type in that dropdown diff --git a/cypress/e2e/submission.cy.ts b/cypress/e2e/submission.cy.ts index ebdabbde2e..11dbbb9004 100644 --- a/cypress/e2e/submission.cy.ts +++ b/cypress/e2e/submission.cy.ts @@ -59,6 +59,9 @@ describe('New Submission page', () => { // This page is restricted, so we will be shown the login form. Fill it out & submit. cy.loginViaForm(Cypress.env('DSPACE_TEST_SUBMIT_USER'), Cypress.env('DSPACE_TEST_SUBMIT_USER_PASSWORD')); + // Accept all cookies to make sure cookie window does not block other elements + cy.get('.orejime-Button--save').click(); + // Attempt an immediate deposit without filling out any fields cy.get('button#deposit').click(); @@ -119,6 +122,9 @@ describe('New Submission page', () => { // This page is restricted, so we will be shown the login form. Fill it out & submit. cy.loginViaForm(Cypress.env('DSPACE_TEST_SUBMIT_USER'), Cypress.env('DSPACE_TEST_SUBMIT_USER_PASSWORD')); + // Accept all cookies to make sure cookie window does not block other elements + cy.get('.orejime-Button--save').click(); + // Fill out all required fields (Title, Date) cy.get('input#dc_title').type('DSpace logo uploaded via e2e tests'); cy.get('input#dc_date_issued_year').type('2022');