Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

fix(test): update TeamInfo virtual keys tests for removed member count display

yuneng-jiangefcde7471143
diff --git a/ui/litellm-dashboard/src/components/team/TeamInfo.test.tsx b/ui/litellm-dashboard/src/components/team/TeamInfo.test.tsx
index 1be400d328b..1e9f724d751 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();