litellm/ui/litellm-dashboard/e2e_tests/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
..
auth test(e2e): cover PROXY_LOGOUT_URL redirect on Logout (#29080) 2026-05-30 18:19:04 -07:00
internal-user test(e2e): cover Internal User create-key flow when in no teams (#29083) 2026-05-30 00:26:28 -07:00
internal-viewer test(e2e): cover Internal Viewer nav, key, and team-info gating (#29075) 2026-05-29 14:36:06 -07:00
login fix(e2e): tolerate trailing slash in SERVER_ROOT_PATH login redirect (#29369) 2026-05-30 20:00:33 -07:00
mcp test(e2e): cover add-MCP-server flow via discovery → custom form (#29070) 2026-05-27 21:15:31 -07:00
modelHub test(e2e): cover AI Hub make-public flow and public model_hub_table (#29071) 2026-05-27 21:15:40 -07:00
modelsPage test(e2e): cover Team-BYOK add-model flow as proxy admin (#29068) 2026-05-27 16:05:27 -07:00
navigation remove outdated e2e test 2026-03-21 23:14:53 -07:00
proxy-admin test(e2e): cover Internal User key modal, team info, key page (#29074) 2026-05-29 14:36:27 -07:00
settings test(e2e): cover add-fallback flow in Router Settings (#29069) 2026-05-27 15:52:19 -07:00
team-admin test(e2e): cover Team Admin view + member + key flows (#29072) 2026-05-28 23:19:16 -07:00
users Neon Branch on every commit + skip flaky tests 2026-01-09 23:25:42 -08:00