mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
Revert "119602: Accept cookies in specs where cookie window covers other elements"
This reverts commit c9b2717344
.
This commit is contained in:
@@ -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', () => {
|
||||
|
@@ -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', () => {
|
||||
|
@@ -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
|
||||
|
@@ -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');
|
||||
|
Reference in New Issue
Block a user