The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
test(ui): scrub stale return-url cookie from e2e storageState (#30317)
ryan-crabbe-berri3fc73c1affe6
diff --git a/ui/litellm-dashboard/e2e_tests/globalSetup.ts b/ui/litellm-dashboard/e2e_tests/globalSetup.tsindex 661155b761f..ef892870268 100644--- a/ui/litellm-dashboard/e2e_tests/globalSetup.ts+++ b/ui/litellm-dashboard/e2e_tests/globalSetup.ts@@ -39,6 +39,11 @@ async function globalSetup() {if (await dismiss.isVisible({ timeout: 1_500 }).catch(() => false)) {await dismiss.click();}+ // The login flow stores a post-login return URL in the litellm_return_url+ // cookie. If the snapshot captures it before the app consumes it, every+ // test inheriting this storageState gets yanked to that stale URL the+ // first time it mounts a page (the e2e suite's main flake source).+ await page.context().clearCookies({ name: "litellm_return_url" });await page.context().storageState({ path: storagePath });} catch (e) {fs.mkdirSync("test-results", { recursive: true });