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
test(ui): follow the models table Status to Source column rename
Yuneng Jiang09741740d47e
diff --git a/ui/litellm-dashboard/src/app/(dashboard)/models-and-endpoints/components/AllModelsTab.test.tsx b/ui/litellm-dashboard/src/app/(dashboard)/models-and-endpoints/components/AllModelsTab.test.tsxindex 659a618c8f6..b98fbf33d24 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/models-and-endpoints/components/AllModelsTab.test.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/models-and-endpoints/components/AllModelsTab.test.tsx@@ -192,7 +192,7 @@ describe("AllModelsTab", () => {expect(lastModelsInfoCall().sortOrder).toBe(firstDirection);});- it("maps the hidden Status column to the server field status", () => {+ it("maps the hidden Source column to the server field status", () => {expect(toServerSortField(STATUS_COLUMN_ID)).toBe("status");});diff --git a/ui/litellm-dashboard/src/app/(dashboard)/models-and-endpoints/components/AllModelsTable.test.tsx b/ui/litellm-dashboard/src/app/(dashboard)/models-and-endpoints/components/AllModelsTable.test.tsxindex cd0b00d9f7c..fa8dd2e5840 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/models-and-endpoints/components/AllModelsTable.test.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/models-and-endpoints/components/AllModelsTable.test.tsx@@ -79,7 +79,7 @@ const row = (modelId: string): HTMLElement => {};describe("AllModelsTable", () => {- it("renders the nine design columns and hides Status behind the Columns menu", async () => {+ it("renders the nine design columns and hides Source behind the Columns menu", async () => {const user = userEvent.setup();render(<AllModelsTable {...baseProps} />);@@ -97,12 +97,15 @@ describe("AllModelsTable", () => {expect(screen.getByRole("columnheader", { name: new RegExp(header, "i") })).toBeInTheDocument();}+ expect(screen.queryByRole("columnheader", { name: /^source$/i })).not.toBeInTheDocument();expect(screen.queryByRole("columnheader", { name: /^status$/i })).not.toBeInTheDocument();expect(screen.queryByText("DB Model")).not.toBeInTheDocument();await user.click(screen.getByRole("button", { name: /columns/i }));- await user.click(await screen.findByRole("menuitemcheckbox", { name: /status/i }));+ expect(screen.queryByRole("menuitemcheckbox", { name: /status/i })).not.toBeInTheDocument();+ await user.click(await screen.findByRole("menuitemcheckbox", { name: /^source$/i }));+ expect(await screen.findByRole("columnheader", { name: /^source$/i })).toBeInTheDocument();expect(await screen.findByText("DB Model")).toBeInTheDocument();});