mirror of
https://github.com/theoludwig/theoludwig.git
synced 2026-08-25 09:21:33 +02:00
test: fix should display hello-world blog post
This commit is contained in:
1 file changed
-1
@@ -3,7 +3,6 @@ describe("Page /blog/[slug]", () => {
|
|||||||
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("main 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")
|
|
||||||
})
|
})
|
||||||
|
|
||||||
it("should redirect to /404 if the blog post doesn't exist", () => {
|
it("should redirect to /404 if the blog post doesn't exist", () => {
|
||||||
|
|||||||
Reference in new issue
Block a user