mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 14:20:42 +08:00
19 lines
631 B
TypeScript
19 lines
631 B
TypeScript
import Search from "./Search.svelte";
|
|
import { mount } from "radicle-svelte-unit-test";
|
|
import { styles } from "@test/support/index";
|
|
|
|
describe('Search', function () {
|
|
it("Renders correctly", () => {
|
|
mount(Search, {}, styles);
|
|
cy.get("input").should("exist");
|
|
cy.get("input").should("have.attr", "placeholder", "Search a name or address...");
|
|
});
|
|
|
|
it("Search input displays and navigates correctly", () => {
|
|
mount(Search, {}, styles);
|
|
cy.get("input").type("cloudhead{enter}");
|
|
cy.get("input").should("have.value", "cloudhead");
|
|
cy.url().should("contain", "/resolver/query?q=cloudhead");
|
|
});
|
|
});
|