litellm/ui
Cursor Agent 89d0849625
fix(ui/tests): drop over-broad fetch-not-called assertion in admin-only page tests
The Workflow Runs, Memory and Guardrails Monitor page.integration tests
asserted that fetchMock was never called for non-admin roles, but useCan
always calls useIsOrgAdmin, which fires GET /organization/list during
render regardless of the capability being checked. That call is unrelated
to the page-specific request the tests actually guard against, and the
follow-up filter check on the page's URL already covers that intent, so
the blanket assertion just made the suite flake red on every commit.

Drop the redundant waitFor so the URL-scoped filter is the single source
of truth for 'no page-specific request fires'.

Co-authored-by: Krrish Dholakia <krrish-berri-2@users.noreply.github.com>
2026-08-12 04:35:30 +00:00
..
litellm-dashboard fix(ui/tests): drop over-broad fetch-not-called assertion in admin-only page tests 2026-08-12 04:35:30 +00:00
Dockerfile chore(build): move the Admin UI toolchain to Node 24 (#35801) 2026-08-04 12:36:07 -07:00
nginx.conf fix(ui): serve /ui/assets from the nginx image instead of SPA fallback (#34066) 2026-07-21 09:22:02 -07:00