From e8fdd715fc6ed9551dcac371fe51f8b0807e0258 Mon Sep 17 00:00:00 2001 From: AlexMendozaPrado Date: Fri, 14 Jun 2024 22:04:45 -0600 Subject: [PATCH] Prueba de Cypress Alejandro Mendoza Prado --- cypress/e2e/sprintSurvey.cy.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/cypress/e2e/sprintSurvey.cy.ts b/cypress/e2e/sprintSurvey.cy.ts index 5de858f..1efcee3 100644 --- a/cypress/e2e/sprintSurvey.cy.ts +++ b/cypress/e2e/sprintSurvey.cy.ts @@ -4,12 +4,22 @@ describe("Sprint Survey", () => { cy.get("label").contains("Email").click().type("cypress@outlook.com"); 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", () => {