From 3ec14149375385863d18c7fc17180d0776b55f9a Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Wed, 19 Aug 2026 09:17:21 +0000 Subject: [PATCH] test(ui): give the Member Role Select more time to open in CI The added carries-a-role-into-the-payload case has failed on multiple staging pushes with 'Unable to find role=option and name /^admin/' when the runner is loaded (14 vitest forks, 16-core host). Base UI Select's popup mounts through a portal with a positioner, and the default findByRole timeout of 1000ms is not enough headroom for that mount when CPU is oversubscribed; the same test passes locally without extra time. Raising the option lookup to 5000ms, in line with the 3000ms already used for the user-filter debounce elsewhere in this file. Co-authored-by: Krrish Dholakia --- .../src/components/common_components/user_search_modal.test.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/litellm-dashboard/src/components/common_components/user_search_modal.test.tsx b/ui/litellm-dashboard/src/components/common_components/user_search_modal.test.tsx index cbaf00b7131..cc8c69edd10 100644 --- a/ui/litellm-dashboard/src/components/common_components/user_search_modal.test.tsx +++ b/ui/litellm-dashboard/src/components/common_components/user_search_modal.test.tsx @@ -131,7 +131,7 @@ describe("UserSearchModal submit payload", () => { const user = userEvent.setup({ pointerEventsCheck: PointerEventsCheckLevel.Never }); await user.click(screen.getByLabelText("Member Role")); - await user.click(await screen.findByRole("option", { name: /^admin/ })); + await user.click(await screen.findByRole("option", { name: /^admin/ }, { timeout: 5000 })); await user.click(save()); await waitFor(() => expect(onSubmit).toHaveBeenCalledTimes(1));