diff --git a/cypress/e2e/common/Header.cy.ts b/cypress/e2e/common/Header.cy.ts index cafae7f..8907e9e 100644 --- a/cypress/e2e/common/Header.cy.ts +++ b/cypress/e2e/common/Header.cy.ts @@ -53,7 +53,7 @@ describe("Common > Header", () => { cy.get("[data-cy=locales-list]").should("not.be.visible") cy.get("[data-cy=locale-click]").click() cy.get("[data-cy=locales-list]").should("be.visible") - cy.get("h1").click() + cy.get("main h1").click() cy.get("[data-cy=locales-list]").should("not.be.visible") }) }) diff --git a/cypress/e2e/pages/blog/[slug].cy.ts b/cypress/e2e/pages/blog/[slug].cy.ts index 20ec423..259b354 100644 --- a/cypress/e2e/pages/blog/[slug].cy.ts +++ b/cypress/e2e/pages/blog/[slug].cy.ts @@ -2,7 +2,7 @@ describe("Page /blog/[slug]", () => { it("should displays the first blog post (`hello-world`)", () => { cy.visit("/blog/hello-world") cy.get("[data-cy=locale-flag-text]").should("not.exist") - cy.get("h1").should("have.text", "👋 Hello, world!") + cy.get("main h1").should("have.text", "👋 Hello, world!") cy.get(".prose a:visible").should("have.attr", "target", "_blank") })