import { describe, it, expect } from "vitest"; import { renderWithProviders, screen } from "@/test/render"; import { ItemCombobox } from "./item-combobox"; describe("ItemCombobox", () => { it("renders the search input with its placeholder", async () => { await renderWithProviders( {}} />, { waitForButton: false, }); expect(await screen.findByPlaceholderText("Search items...")).toBeInTheDocument(); }); it("disables the input when disabled", async () => { await renderWithProviders( {}} disabled />, { waitForButton: false, }); expect(await screen.findByPlaceholderText("Search items...")).toBeDisabled(); }); });