Skip to content

Commit

Permalink
Merge pull request #318 from IslaBen/patch-1
Browse files Browse the repository at this point in the history
added assersion to validate that the button says "Complete Course"
  • Loading branch information
jennifer-shehane authored Dec 2, 2024
2 parents 210b27f + 1c41976 commit 93dcca1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ describe("User Journey", () => {
"/testing-your-first-application/setting-up-data-before-each-test"
)
cy.getByData("challenge-answer-0").click()
cy.getByData("next-lesson-button").should("exist").click()
cy.getByData("next-lesson-button").should("exist").contains("Complete Course").click()

cy.location("pathname").should("equal", "/")
})
Expand Down

0 comments on commit 93dcca1

Please sign in to comment.