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
Fixing UI tests
yuneng-jiang01e22fd5ab65
diff --git a/ui/litellm-dashboard/src/components/vector_store_management/DocumentsTable.test.tsx b/ui/litellm-dashboard/src/components/vector_store_management/DocumentsTable.test.tsxindex 761bc2b7df7..507ad0537d6 100644--- a/ui/litellm-dashboard/src/components/vector_store_management/DocumentsTable.test.tsx+++ b/ui/litellm-dashboard/src/components/vector_store_management/DocumentsTable.test.tsx@@ -62,7 +62,7 @@ describe("DocumentsTable", () => {render(<DocumentsTable documents={mockDocuments} onRemove={onRemove} />);expect(screen.getByText(/1000.00 KB/)).toBeInTheDocument();- expect(screen.getByText(/2.00 MB/)).toBeInTheDocument();+ expect(screen.getByText(/1.95 MB/)).toBeInTheDocument();expect(screen.getByText(/500.00 KB/)).toBeInTheDocument();});diff --git a/ui/litellm-dashboard/src/components/vector_store_management/S3VectorsConfig.test.tsx b/ui/litellm-dashboard/src/components/vector_store_management/S3VectorsConfig.test.tsxindex beb13b5441e..28f885a9dd6 100644--- a/ui/litellm-dashboard/src/components/vector_store_management/S3VectorsConfig.test.tsx+++ b/ui/litellm-dashboard/src/components/vector_store_management/S3VectorsConfig.test.tsx@@ -87,7 +87,7 @@ describe("S3VectorsConfig", () => {render(<S3VectorsConfig {...defaultProps} />);- const bucketInput = screen.getByPlaceholderText("my-vector-bucket");+ const bucketInput = screen.getByPlaceholderText("my-vector-bucket (min 3 chars)");await act(async () => {fireEvent.change(bucketInput, { target: { value: "test-bucket" } });@@ -150,7 +150,7 @@ describe("S3VectorsConfig", () => {render(<S3VectorsConfig {...defaultProps} providerParams={existingParams} />);- const indexInput = screen.getByPlaceholderText("my-vector-index");+ const indexInput = screen.getByPlaceholderText("my-vector-index (optional, min 3 chars)");await act(async () => {fireEvent.change(indexInput, { target: { value: "my-index" } });diff --git a/ui/litellm-dashboard/src/components/vector_store_management/VectorStoreTable.test.tsx b/ui/litellm-dashboard/src/components/vector_store_management/VectorStoreTable.test.tsxindex 0e2be7f62df..ac790122507 100644--- a/ui/litellm-dashboard/src/components/vector_store_management/VectorStoreTable.test.tsx+++ b/ui/litellm-dashboard/src/components/vector_store_management/VectorStoreTable.test.tsx@@ -183,7 +183,7 @@ describe("VectorStoreTable", () => {it("should render fallback for missing name", () => {renderComponent();const fallbackElements = screen.getAllByText("-");- expect(fallbackElements.length).toBe(3); // One for missing name, one for missing description, one for missing files+ expect(fallbackElements.length).toBe(5); // One for missing name, one for missing description, three for missing files (one per store)});it("should wrap name in tooltip", () => {@@ -203,7 +203,7 @@ describe("VectorStoreTable", () => {it("should render fallback for missing description", () => {renderComponent();const fallbackElements = screen.getAllByText("-");- expect(fallbackElements.length).toBe(3); // One for missing name, one for missing description, one for missing files+ expect(fallbackElements.length).toBe(5); // One for missing name, one for missing description, three for missing files (one per store)});it("should wrap description in tooltip", () => {