litellm/ui
Yuneng Jiang 0fcd0f99f9
test(ui): stub the org-list query in the admin-only page gate tests
These three files assert that a denied role renders the admin-only notice
and issues no request. They were written when useCan read only the session
role, so a denied render genuinely touched the network zero times.

useCan then grew a useIsOrgAdmin leg, which reads useOrganizations, so every
capability check now issues GET /organization/list regardless of the role or
the capability. Both changes landed the same afternoon and were green on
their own bases, so the break only appeared once they were merged.

Stubbing useOrganizations keeps the zero-request assertion exact instead of
loosening it to ignore whatever else the page happens to fetch. It also
leaves isOrgAdminSessionRole running for real, so the Org Admin case still
proves that a genuine org admin is refused rather than an ordinary user.
2026-08-11 21:50:06 -07:00
..
litellm-dashboard test(ui): stub the org-list query in the admin-only page gate tests 2026-08-11 21:50:06 -07: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