Skip to content

Commit

Permalink
cypress
Browse files Browse the repository at this point in the history
  • Loading branch information
revolunet committed Mar 11, 2024
1 parent 89f3e92 commit c58703e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion cypress.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{
"baseUrl": "http://localhost:3000"
"baseUrl": "http://localhost:3000",
"defaultCommandTimeout": 10000,
"requestTimeout": 10000
}
2 changes: 1 addition & 1 deletion cypress/integration/home.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ describe("Home page", () => {
it("should render the main page", () => {
cy.visit("http://localhost:3000/");
cy.title().should("equal", "Template | beta.gouv.fr");
cy.get("h1").should("equal", "Template");
cy.get("h1").should("contain", "Template");
});
});

0 comments on commit c58703e

Please sign in to comment.