Skip to content

Commit

Permalink
update home page e2e tests to check cycling goal section
Browse files Browse the repository at this point in the history
  • Loading branch information
henriquebf committed Jul 23, 2024
1 parent 5be125d commit 1760dd6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions web/cypress/integration/home.spec.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
describe("Home Page", () => {
it("should render the home page correctly", () => {
beforeEach(() => {
cy.visit("http://localhost:3000");
});

it("should render the introduction text", () => {
cy.contains("I am Henrique Ferreira").should("be.visible");
cy.contains("[email protected]").should("be.visible");
});

it("should render the cycling goal section", () => {
cy.contains("Cycling Goal").should("be.visible");
});
});

0 comments on commit 1760dd6

Please sign in to comment.