test: Cypress - Welcome screen - Before hook FailureFix - CI runs (#21714)
## Description - This PR aims to fix the welcome screen button click failures seen recently in CI runs ## Type of change - Script fix ## How Has This Been Tested? - Cypress local run ## Checklist: ### QA activity: - [X] Added Test Plan Approved label after reviewing all Cypress test
This commit is contained in:
parent
608658818f
commit
f52209c691
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user