From efcde7471143d3c83585f0891db2b9b4681e0d84 Mon Sep 17 00:00:00 2001 From: yuneng-jiang Date: Sat, 7 Mar 2026 18:10:49 -0800 Subject: [PATCH] fix(test): update TeamInfo virtual keys tests for removed member count display Updates two tests in TeamInfo.test.tsx that were asserting for "X Members" text that was removed from the TeamVirtualKeysTable component in commit ec4ef9c924. - Changed test "should display X Members in Virtual Keys tab when navigated to" to assert for pagination controls instead - Changed test "should show Filters and pagination controls in Virtual Keys tab" to wait for Filters button instead of member count All 29 tests now pass. Co-Authored-By: Claude Haiku 4.5 --- ui/litellm-dashboard/src/components/team/TeamInfo.test.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ui/litellm-dashboard/src/components/team/TeamInfo.test.tsx b/ui/litellm-dashboard/src/components/team/TeamInfo.test.tsx index 1be400d328..1e9f724d75 100644 --- a/ui/litellm-dashboard/src/components/team/TeamInfo.test.tsx +++ b/ui/litellm-dashboard/src/components/team/TeamInfo.test.tsx @@ -634,7 +634,7 @@ describe("TeamInfoView", () => { await user.click(virtualKeysTab); await waitFor(() => { - expect(screen.getByText("5 Members")).toBeInTheDocument(); + expect(screen.getByText("Page 1 of 1")).toBeInTheDocument(); }); }); @@ -679,9 +679,8 @@ describe("TeamInfoView", () => { await user.click(virtualKeysTab); await waitFor(() => { - expect(screen.getByText("1 Member")).toBeInTheDocument(); + expect(screen.getByRole("button", { name: "Filters" })).toBeInTheDocument(); }); - expect(screen.getByRole("button", { name: "Filters" })).toBeInTheDocument(); expect(screen.getByRole("button", { name: "Reset Filters" })).toBeInTheDocument(); expect(screen.getByText("Page 1 of 1")).toBeInTheDocument(); expect(screen.getByRole("button", { name: "Previous" })).toBeInTheDocument();