diff --git a/cypress/e2e/collection-create.cy.ts b/cypress/e2e/collection-create.cy.ts index 85ce8cdbc6..29f7dd5cac 100644 --- a/cypress/e2e/collection-create.cy.ts +++ b/cypress/e2e/collection-create.cy.ts @@ -1,9 +1,6 @@ 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 5086f16e8e..96bc003ba2 100644 --- a/cypress/e2e/community-create.cy.ts +++ b/cypress/e2e/community-create.cy.ts @@ -1,9 +1,6 @@ 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 e4f47bd473..159bb4f5e6 100644 --- a/cypress/e2e/my-dspace.cy.ts +++ b/cypress/e2e/my-dspace.cy.ts @@ -44,9 +44,6 @@ 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 11dbbb9004..ebdabbde2e 100644 --- a/cypress/e2e/submission.cy.ts +++ b/cypress/e2e/submission.cy.ts @@ -59,9 +59,6 @@ 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(); @@ -122,9 +119,6 @@ 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');