mirror of
https://github.com/komodorio/helm-dashboard.git
synced 2026-03-26 14:28:04 +00:00
27 lines
550 B
TypeScript
27 lines
550 B
TypeScript
import TextInput from "../components/TextInput";
|
|
|
|
describe("TextInput", () => {
|
|
const label = "label";
|
|
const placeholder = "some placeholder";
|
|
|
|
beforeEach(() => {
|
|
cy.mount(
|
|
<TextInput
|
|
label={label}
|
|
placeholder={placeholder}
|
|
onChange={() => {
|
|
return;
|
|
}}
|
|
/>
|
|
);
|
|
});
|
|
|
|
it("contains correct label", () => {
|
|
cy.get("label").should("contain", label);
|
|
});
|
|
|
|
it("contains correct placeholder", () => {
|
|
cy.get("input").should("have.attr", "placeholder", placeholder);
|
|
});
|
|
});
|