Skip to content

Commit

Permalink
Prueba de Cypress Alejandro Mendoza Prado
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexMendozaPrado committed Jun 15, 2024
1 parent c48e57b commit e8fdd71
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion cypress/e2e/sprintSurvey.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,22 @@ describe("Sprint Survey", () => {
cy.get("label").contains("Email").click().type("[email protected]");
cy.get("label").contains("Password").click().type("cypress");
cy.get("button").contains("Log in").click();
cy.wait(12000);
cy.wait(15000);
cy.url().should("include", "/dashboard");
cy.get('[data-testid="notification-button"]').click();
cy.get('[data-testid="Sprint Survey"]').click();
cy.get('[data-testid="sprint-survey"]').should("exist");
});
//Alejandro Mendoza Prado A00819383
it("Fill step one", () => {
cy.get('[data-testid="sprint-step-one"]').should("exist");
const sliders = cy.get('[data-testid^="slider-"]');
sliders.each((slider) => {
cy.wrap(slider).find("input").invoke("val", 1).trigger("change");
});
cy.get("button").contains("Next").click();
cy.get('[data-testid="sprint-step-two"]').should("exist");
});

// José Eduardo de Valle Lara A01734957
it("Not allow to move forward if not done with step two", () => {
Expand Down

0 comments on commit e8fdd71

Please sign in to comment.