From 74608c685990c1eda41ff90b5935b7c1ccc4f70a Mon Sep 17 00:00:00 2001 From: albertbausili Date: Mon, 28 Sep 2026 13:19:33 +0200 Subject: [PATCH] test(ui): allow availability checks to settle under CI load --- .../edit_auto_router_modal.integration.test.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/litellm-dashboard/src/components/edit_auto_router/edit_auto_router_modal.integration.test.tsx b/ui/litellm-dashboard/src/components/edit_auto_router/edit_auto_router_modal.integration.test.tsx index 33d35b9677c..b0c8e23a0cb 100644 --- a/ui/litellm-dashboard/src/components/edit_auto_router/edit_auto_router_modal.integration.test.tsx +++ b/ui/litellm-dashboard/src/components/edit_auto_router/edit_auto_router_modal.integration.test.tsx @@ -157,7 +157,7 @@ describe("EditAutoRouterModal keyword matching", () => { const threshold = screen.getByRole("textbox", { name: "Success threshold" }); expect(threshold).toHaveValue("0.91"); fireEvent.change(threshold, { target: { value: raw } }); - await waitFor(() => expect(screen.getByRole("button", { name: "Save Changes" })).toBeEnabled()); + await waitFor(() => expect(screen.getByRole("button", { name: "Save Changes" })).toBeEnabled(), { timeout: 5000 }); await user.click(screen.getByRole("button", { name: "Save Changes" })); await waitFor(() => expect(modelPatchUpdateCall).toHaveBeenCalledOnce()); if (raw === "") expect(savedConfig()).not.toHaveProperty("heuristic_v2_success_threshold");