diff --git a/cypress.json b/cypress.json index 17ef242e..968e628c 100644 --- a/cypress.json +++ b/cypress.json @@ -1,3 +1,5 @@ { - "baseUrl": "http://localhost:3000" + "baseUrl": "http://localhost:3000", + "defaultCommandTimeout": 10000, + "requestTimeout": 10000 } diff --git a/cypress/integration/home.spec.ts b/cypress/integration/home.spec.ts index 4a265ef1..f96fae72 100644 --- a/cypress/integration/home.spec.ts +++ b/cypress/integration/home.spec.ts @@ -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"); }); });