diff --git a/ui/litellm-dashboard/e2e_tests/tests/login/serverRootPathRedirect.spec.ts b/ui/litellm-dashboard/e2e_tests/tests/login/serverRootPathRedirect.spec.ts index 62a3e91318..bdef8f85c4 100644 --- a/ui/litellm-dashboard/e2e_tests/tests/login/serverRootPathRedirect.spec.ts +++ b/ui/litellm-dashboard/e2e_tests/tests/login/serverRootPathRedirect.spec.ts @@ -26,7 +26,7 @@ test("unauth redirect preserves SERVER_ROOT_PATH prefix", async ({ page }) => { await page.goto(`http://localhost:4000${ROOT_PATH}/ui/?page=virtual-keys`); - await page.waitForURL((url) => url.pathname.endsWith("/ui/login"), { timeout: 15_000 }); + await page.waitForURL((url) => url.pathname.includes("/ui/login"), { timeout: 15_000 }); expect(page.url()).toContain(`${ROOT_PATH}/ui/login`); });