import { describe, expect, it, vi } from "vitest"; import { fireEvent, render, screen, within, waitFor } from "@testing-library/react"; import { Select, type SelectOption } from "./Select"; const options: SelectOption[] = [ { value: "9router", label: "9router", section: true }, { value: "9router/cmc/Beam", label: "Beam", detail: "cmc/Beam · Fast", keywords: "9router" }, { value: "9router/blocked", label: "Blocked", disabled: true, keywords: "9router" }, { value: "other", label: "Other", section: true }, { value: "other/BlueMoon", label: "Blue Moon", keywords: "other" }, { value: "__section__:real", label: "Plain" }, ]; function setup(searchable = true, rows = options) { const onChange = vi.fn(); render(