diff --git a/app/client/cypress/support/commands.js b/app/client/cypress/support/commands.js index 0874d8bb3b..3c50ed26ae 100644 --- a/app/client/cypress/support/commands.js +++ b/app/client/cypress/support/commands.js @@ -1237,16 +1237,17 @@ Cypress.Commands.add("createSuperUser", () => { cy.get(welcomePage.nextButton).should("not.be.disabled"); cy.get(welcomePage.nextButton).click(); cy.get(welcomePage.newsLetter).should("be.visible"); + //cy.get(welcomePage.newsLetter).trigger("mouseover").click(); + //cy.get(welcomePage.newsLetter).find("input").uncheck();//not working cy.get(welcomePage.dataCollection).should("be.visible"); - cy.get(welcomePage.dataCollection).trigger("mouseover").click(); - cy.get(welcomePage.newsLetter).trigger("mouseover").click(); + //cy.get(welcomePage.dataCollection).trigger("mouseover").click(); cy.get(welcomePage.createButton).should("be.visible"); - cy.get(welcomePage.createButton).click(); + cy.get(welcomePage.createButton).click({ force: true }); cy.wait("@createSuperUser").then((interception) => { - expect(interception.request.body).not.contains( + expect(interception.request.body).contains( "allowCollectingAnonymousData=true", ); - expect(interception.request.body).not.contains("signupForNewsletter=true"); + expect(interception.request.body).contains("signupForNewsletter=true"); }); cy.LogOut(); cy.wait(2000);