-
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.
Merge pull request #243 from wizelineacademy/dev
Dev
- Loading branch information
Showing
8 changed files
with
35 additions
and
16 deletions.
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 |
---|---|---|
@@ -1,3 +1 @@ | ||
# npm run tsc | ||
# npm run lint:fix | ||
# npm run test | ||
npm run tsc && npm run lint:fix && npm run test:ci |
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
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
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,10 +4,31 @@ 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", () => { | ||
cy.get("button").contains("Next").click(); | ||
cy.get('[data-testid="sprint-step-two"]').should("exist"); | ||
cy.wait(3000); | ||
cy.get("button").contains("Submit").click(); | ||
cy.get("div") | ||
.contains("Please fill all the fields before submitting the survey") | ||
.should("exist"); | ||
}); | ||
}); |
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
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
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
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