Skip to content

Commit

Permalink
E2E testing added from Eduardo de Valle to sprintSurvey.cy.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
EduardodeValle committed Jun 15, 2024
1 parent 6000460 commit c48e57b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions cypress/e2e/sprintSurvey.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,15 @@ describe("Sprint Survey", () => {
cy.get('[data-testid="Sprint Survey"]').click();
cy.get('[data-testid="sprint-survey"]').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");
});
});

0 comments on commit c48e57b

Please sign in to comment.