litellm/ui/litellm-dashboard/e2e_tests
ryan-crabbe-berri 5c41aabab0
feat(ui): cut the teams page over to the /ui/teams path route (#30343)
* feat(ui): cut the teams page over to the /ui/teams path route

OldTeams renders from app/(dashboard)/teams/page.tsx via useAuthorized. The
component already fetched its own paginated, filtered team list through
v2TeamListCall; setTeams was only a round-trip back into the shell's lifted
state, so it becomes internal useState. The organizations prop was redundant
with the useOrganizations hook the component already calls, and searchParams
was never read, so both are dropped. The shell keeps its own teams state and
fetch for the still-coupled api-keys and models arms.

Tests no longer inject teams through a prop; they mock teamListCall to drive
what the component renders.

* test(ui): drop unnecessary as-any casts on teamListCall mocks

teamListCall returns Promise<any>, so mockResolvedValue already accepts the
payload untyped. The casts pushed the repo-wide no-explicit-any lint budget
over its ceiling in CI.

* test(ui): drop redundant as-any casts from team mock fixtures

The mocked teamListCall resolves an any-typed payload, so the inner team
fixtures no longer need casts to carry a null organization_id, a keys_count
field, or partial key objects.
2026-06-15 17:42:25 -07:00
..
fixtures feat(ui): cut the teams page over to the /ui/teams path route (#30343) 2026-06-15 17:42:25 -07:00
helpers feat(proxy): enforce key/team guardrails on bedrock passthrough routes (#30194) 2026-06-12 07:23:29 -07:00
tests feat(ui): migrate playground to path routing and colocate its files (#30185) 2026-06-11 12:07:17 -07:00
constants.ts test(e2e): assert internal-user navbar identity is scoped to that user (#29077) 2026-05-30 00:29:30 -07:00
globalSetup.ts feat(ui): migrate projects and access-groups to path routes (#30226) 2026-06-11 13:20:21 -07:00
migration.serverRootPath.config.ts test(ui): data-driven App Router migration E2E smoke (default + server-root-path) (#29974) 2026-06-09 10:40:01 -07:00
playwright.config.ts style(ui): run prettier --write across the dashboard (#29622) 2026-06-04 11:37:54 -07:00
run_e2e.sh test(e2e): cover PROXY_LOGOUT_URL redirect on Logout (#29080) 2026-05-30 18:19:04 -07:00
serverRootPath.config.ts refactor(ui): extract auth state into AuthContext (#28910) 2026-05-26 17:53:03 -07:00