-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prueba de Cypress Alejandro Mendoza Prado
- Loading branch information
1 parent
c48e57b
commit e8fdd71
Showing
1 changed file
with
11 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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", () => { | ||
|