mirror of
https://github.com/theoludwig/theoludwig.git
synced 2024-11-03 20:11:30 +01:00
test: correct selector for Main Title of page
This commit is contained in:
parent
05503cda26
commit
c8d32c6acc
@ -53,7 +53,7 @@ describe("Common > Header", () => {
|
|||||||
cy.get("[data-cy=locales-list]").should("not.be.visible")
|
cy.get("[data-cy=locales-list]").should("not.be.visible")
|
||||||
cy.get("[data-cy=locale-click]").click()
|
cy.get("[data-cy=locale-click]").click()
|
||||||
cy.get("[data-cy=locales-list]").should("be.visible")
|
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")
|
cy.get("[data-cy=locales-list]").should("not.be.visible")
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
@ -2,7 +2,7 @@ describe("Page /blog/[slug]", () => {
|
|||||||
it("should displays the first blog post (`hello-world`)", () => {
|
it("should displays the first blog post (`hello-world`)", () => {
|
||||||
cy.visit("/blog/hello-world")
|
cy.visit("/blog/hello-world")
|
||||||
cy.get("[data-cy=locale-flag-text]").should("not.exist")
|
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")
|
cy.get(".prose a:visible").should("have.attr", "target", "_blank")
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user