1
1
mirror of https://github.com/theoludwig/theoludwig.git synced 2024-07-12 13:30:13 +02:00

test: fix should display hello-world blog post

This commit is contained in:
Théo LUDWIG 2024-05-21 19:17:29 +02:00
parent efa33f26ec
commit dd803bcc51
Signed by: theoludwig
GPG Key ID: ADFE5A563D718F3B

View File

@ -3,7 +3,6 @@ describe("Page /blog/[slug]", () => {
cy.visit("/blog/hello-world")
cy.get("[data-cy=locale-flag-text]").should("not.exist")
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", () => {