mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-12 06:00:34 +08:00
This gets rid of the testing-library-* and cypress-vite-devserver dependencies and updates the specs according to the latest Cypress documentation. Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
18 lines
509 B
TypeScript
18 lines
509 B
TypeScript
import NotFound from "./NotFound.svelte";
|
|
|
|
describe("NotFound", () => {
|
|
it("shows passed props correctly", () => {
|
|
cy.mount(NotFound, {
|
|
props: {
|
|
title: "nakamoto",
|
|
subtitle: "Sorry, the requested project was not found.",
|
|
},
|
|
});
|
|
cy.get("body").contains("nakamoto").should("be.visible");
|
|
cy.get("body")
|
|
.contains("Sorry, the requested project was not found.")
|
|
.should("be.visible");
|
|
cy.get("button").contains("Back").should("be.visible");
|
|
});
|
|
});
|