diff --git a/ui/litellm-dashboard/src/app/(dashboard)/teams/components/TeamsTable/ModelsCell.test.tsx b/ui/litellm-dashboard/src/app/(dashboard)/teams/components/TeamsTable/ModelsCell.test.tsx index 2b487d65322..1e383d0af40 100644 --- a/ui/litellm-dashboard/src/app/(dashboard)/teams/components/TeamsTable/ModelsCell.test.tsx +++ b/ui/litellm-dashboard/src/app/(dashboard)/teams/components/TeamsTable/ModelsCell.test.tsx @@ -4,17 +4,8 @@ import { describe, expect, it, vi } from "vitest"; import { Team } from "@/components/key_team_helpers/key_list"; import ModelsCell from "./ModelsCell"; -// The Icon component from @tremor/react does not forward onClick to the rendered element -// by default in the test environment, so we stub it with a clickable button so accordion -// interaction can be tested end-to-end. -vi.mock("@tremor/react", async (importOriginal) => { - const actual = await importOriginal(); - return { - ...actual, - Icon: ({ onClick, "aria-label": ariaLabel }: { onClick?: () => void; "aria-label"?: string }) => - React.createElement("button", { onClick, "aria-label": ariaLabel ?? "accordion-toggle", type: "button" }), - }; -}); +// The component now uses a native