Files
radicle-explorer/src/NotFound.spec.ts
T
Rūdolfs Ošiņš 9b8a9a46dd Upgrade Cypress dependency
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>
2022-09-26 16:34:30 +02:00

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