Skip to content

Commit

Permalink
FIX cypress tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominik2809 committed Feb 24, 2023
1 parent e63f41e commit 3214b5b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ context("geoblocking-regulation", () =>

function loginAsUser()
{
cy.login()
cy.login("[email protected]")
cy.wait(2000);
cy.addBasketItem(1014);
cy.visit("/checkout/");
Expand Down
10 changes: 5 additions & 5 deletions testing/cypress/integration/homepage/cookie-bar.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) =>
{
Expand Down Expand Up @@ -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) =>
{
Expand All @@ -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) =>
{
Expand Down

0 comments on commit 3214b5b

Please sign in to comment.