From 3214b5bd7979bf209fd3b05c837d00a178c0b290 Mon Sep 17 00:00:00 2001 From: Dominik Meyer Date: Fri, 24 Feb 2023 10:48:44 +0100 Subject: [PATCH] FIX cypress tests --- .../checkout/geoblocking-regulation.spec.js | 2 +- .../cypress/integration/homepage/cookie-bar.spec.js | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/testing/cypress/integration/checkout/geoblocking-regulation.spec.js b/testing/cypress/integration/checkout/geoblocking-regulation.spec.js index 0242a2ab0d..4dc499e221 100644 --- a/testing/cypress/integration/checkout/geoblocking-regulation.spec.js +++ b/testing/cypress/integration/checkout/geoblocking-regulation.spec.js @@ -108,7 +108,7 @@ context("geoblocking-regulation", () => function loginAsUser() { - cy.login() + cy.login("plentygeoblockingtest@plenty.de") cy.wait(2000); cy.addBasketItem(1014); cy.visit("/checkout/"); diff --git a/testing/cypress/integration/homepage/cookie-bar.spec.js b/testing/cypress/integration/homepage/cookie-bar.spec.js index 2924962f07..ece6b00d1f 100644 --- a/testing/cypress/integration/homepage/cookie-bar.spec.js +++ b/testing/cypress/integration/homepage/cookie-bar.spec.js @@ -94,7 +94,7 @@ context("Cookiebar", () => it("Should consent group on toggle", () => { cy.getByTestingAttr("cookie-bar-show-more-information").click(); - cy.getByTestingAttr("cookie-bar").find(".privacy-settings .custom-control").eq(2).click(); + cy.getByTestingAttr("cookie-bar").find(".privacy-settings .custom-control").eq(1).click(); cy.getStore().then((store) => { @@ -127,8 +127,8 @@ context("Cookiebar", () => it("Should consent a single privacy setting entry", () => { cy.getByTestingAttr("cookie-bar-show-more-information").click(); - cy.get(".consent-group").eq(2).find("[data-testing=privacy-settings-show-more-information]").click(); - cy.get(".consent-group").eq(2).find(".consent .custom-control").click(); + cy.get(".consent-group").eq(3).find("[data-testing=privacy-settings-show-more-information]").click(); + cy.get(".consent-group").eq(3).find(".consent .custom-control").click(); cy.getStore().then((store) => { @@ -139,8 +139,8 @@ context("Cookiebar", () => it("Should withdraw the consent for paypal cookie", () => { cy.getByTestingAttr("cookie-bar-show-more-information").click(); - cy.get(".consent-group").eq(3).find("[data-testing=privacy-settings-show-more-information]").click(); - cy.get(".consent-group").eq(3).find(".consent .custom-control").click(); + cy.get(".consent-group").eq(2).find("[data-testing=privacy-settings-show-more-information]").click(); + cy.get(".consent-group").eq(2).find(".consent .custom-control").click(); cy.getStore().then((store) => {