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