litellm/ui/litellm-dashboard/e2e_tests
ryan-crabbe-berri a2c916fb45
feat(ui): migrate projects and access-groups to path routes (#30226)
* feat(ui): cut projects and access-groups over to path routes

Same recipe as playground (#30185): MIGRATED_PAGES entries route the
sidebar and redirect the legacy ?page= URLs, the switch arms are
deleted, and the e2e fixture grows two entries. Both components were
already zero-prop and self-fetching via React Query hooks, so the
route wrappers are trivial.

* refactor(ui): move Projects and AccessGroups components into their route folders

Both folders were imported only by the legacy switch, so they colocate
wholesale under (dashboard)/{projects,access-groups}/components. Their
React Query hooks stay in the shared (dashboard)/hooks layer. eslint
suppressions are re-keyed to the new paths.

* test(ui): enable enable_projects_ui in e2e global setup

The projects migration smoke clicks the Projects sidebar link, which
only renders when the enterprise-gated enable_projects_ui setting is
on; the seeded e2e database starts with it off, so the locator timed
out in both e2e_ui_testing jobs. CI already launches the proxy with
LITELLM_LICENSE for premium UI coverage, so flip the setting in
globalSetup via the same /update/ui_settings call the admin UI toggle
makes, failing loudly if the PATCH is rejected.

* test(ui): use Playwright request context instead of raw fetch in global setup

The frontend lint bans raw fetch() outside src/lib/http/; the e2e
convention for proxy API calls is Playwright's APIRequestContext, as
in routerSettings.spec.ts.
2026-06-11 13:20:21 -07:00
..
fixtures feat(ui): migrate projects and access-groups to path routes (#30226) 2026-06-11 13:20:21 -07:00
helpers style(ui): run prettier --write across the dashboard (#29622) 2026-06-04 11:37:54 -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