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]

Fixing tests

yuneng-jiang76e9b69cad48
diff --git a/ui/litellm-dashboard/src/components/entity_usage.test.tsx b/ui/litellm-dashboard/src/components/entity_usage.test.tsx
index 2c070427ead..2b6234c039e 100644
--- a/ui/litellm-dashboard/src/components/entity_usage.test.tsx
+++ b/ui/litellm-dashboard/src/components/entity_usage.test.tsx
@@ -245,9 +245,9 @@ describe("EntityUsage", () => {
expect(mockTagDailyActivityCall).toHaveBeenCalled();
});
- await waitFor(() => {
- expect(screen.getByText("$0.00")).toBeInTheDocument();
- expect(screen.getByText("Total Spend")).toBeInTheDocument();
- });
+ expect(await screen.findByText("Tag Spend Overview")).toBeInTheDocument();
+ expect(await screen.findByText("$-")).toBeInTheDocument();
+ expect(screen.getByText("Total Spend")).toBeInTheDocument();
+ expect(screen.getAllByText("0")[0]).toBeInTheDocument();
});
});