1
1
mirror of https://github.com/theoludwig/theoludwig.git synced 2024-08-05 11:38:28 +02:00

test: correct selector for Main Title of page

This commit is contained in:
Théo LUDWIG 2024-01-28 16:13:02 +01:00
parent 05503cda26
commit c8d32c6acc
Signed by: theoludwig
GPG Key ID: ADFE5A563D718F3B
2 changed files with 2 additions and 2 deletions

View File

@ -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")
})
})

View File

@ -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")
})