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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
Update ui/litellm-dashboard/src/app/(dashboard)/models-and-endpoints/ModelsAndEndpointsView.test.tsx
Cesar Garcia2e9326523a7f
diff --git a/ui/litellm-dashboard/src/app/(dashboard)/models-and-endpoints/ModelsAndEndpointsView.test.tsx b/ui/litellm-dashboard/src/app/(dashboard)/models-and-endpoints/ModelsAndEndpointsView.test.tsxindex 74cfd45ac0b..e1b3b358300 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/models-and-endpoints/ModelsAndEndpointsView.test.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/models-and-endpoints/ModelsAndEndpointsView.test.tsx@@ -172,15 +172,14 @@ describe("ModelsAndEndpointsView", () => {// Find and click dismiss button (X button)const dismissButton = container.querySelector('button[aria-label="Dismiss banner"]');- if (dismissButton) {- fireEvent.click(dismissButton);+ expect(dismissButton).not.toBeNull();+ fireEvent.click(dismissButton!);- // Banner should be hidden- expect(queryByText("Missing a provider?")).not.toBeInTheDocument();+ // Banner should be hidden+ expect(queryByText("Missing a provider?")).not.toBeInTheDocument();- // LocalStorage should be updated- expect(localStorageMock.getItem("hideMissingProviderBanner")).toBe("true");- }+ // LocalStorage should be updated+ expect(localStorageMock.getItem("hideMissingProviderBanner")).toBe("true");}, 15000);it("should show compact Request Provider button when banner is dismissed", async () => {