litellm/ui/litellm-dashboard/e2e_tests
yuneng-jiang 54ed5a4eb5
fix(e2e): tolerate trailing slash in SERVER_ROOT_PATH login redirect (#29369)
The Next.js admin UI is exported with trailingSlash: true, so the proxy
serves /ui/login at /ui/login/index.html and 308s /ui/login → /ui/login/.
The waitForURL predicate used endsWith("/ui/login"), which never matched
the canonicalized URL and timed out after 15s.

This was masked until the build artifacts were regenerated against the
AuthContext fix: the prior bundles still hit the racy redirect path that
fired before proxyBaseUrl was populated, producing /ui/login (no prefix,
no proxy round-trip, no trailing slash) which fortuitously satisfied the
predicate. The first PR to ship the corrected bundle exposed the
assertion bug.

Switch the predicate to includes("/ui/login"); the prefix assertion below
still validates the SERVER_ROOT_PATH preservation that is the actual
contract under test.
2026-05-30 20:00:33 -07:00
..
fixtures test(e2e): cover Internal User create-key flow when in no teams (#29083) 2026-05-30 00:26:28 -07:00
helpers test(e2e): cover Internal User key modal, team info, key page (#29074) 2026-05-29 14:36:27 -07:00
tests fix(e2e): tolerate trailing slash in SERVER_ROOT_PATH login redirect (#29369) 2026-05-30 20:00:33 -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 [Feature] E2E UI tests: proxy-admin team and key management with CI integration 2026-04-08 11:51:15 -07:00
playwright.config.ts test(e2e): migrate runner to uv, add All Proxy Models key test (#28313) 2026-05-20 12:35:29 -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