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
fix: narrow onSubmit values and use semantic loading assertion
yuneng-jiang02a53989cf43
diff --git a/ui/litellm-dashboard/src/app/onboarding/OnboardingFormBody.test.tsx b/ui/litellm-dashboard/src/app/onboarding/OnboardingFormBody.test.tsxindex 40201aab3aa..a5bfae3f880 100644--- a/ui/litellm-dashboard/src/app/onboarding/OnboardingFormBody.test.tsx+++ b/ui/litellm-dashboard/src/app/onboarding/OnboardingFormBody.test.tsx@@ -61,8 +61,8 @@ describe("OnboardingFormBody", () => {it("shows a loading indicator on the submit button when isPending is true", () => {render(<OnboardingFormBody {...defaultProps} isPending={true} />);- // antd Button with loading={true} adds .ant-btn-loading class- expect(document.querySelector(".ant-btn-loading")).toBeInTheDocument();+ // antd v5 renders a loading icon with aria-label="loading" inside the button+ expect(screen.getByRole("img", { name: "loading" })).toBeInTheDocument();});it("calls onSubmit with the typed password on form submit", async () => {diff --git a/ui/litellm-dashboard/src/app/onboarding/OnboardingFormBody.tsx b/ui/litellm-dashboard/src/app/onboarding/OnboardingFormBody.tsxindex 69abe4ffbf3..c57c7328b61 100644--- a/ui/litellm-dashboard/src/app/onboarding/OnboardingFormBody.tsx+++ b/ui/litellm-dashboard/src/app/onboarding/OnboardingFormBody.tsx@@ -59,7 +59,7 @@ export function OnboardingFormBody({/>)}- <Form className="mt-10 mb-5" layout="vertical" form={form} onFinish={onSubmit}>+ <Form className="mt-10 mb-5" layout="vertical" form={form} onFinish={(values) => onSubmit({ password: values.password })}><Form.Item label="Email Address" name="user_email"><Input type="email" disabled /></Form.Item>