From 370ec75b8ad50aa2f534f58108e8f64444d05119 Mon Sep 17 00:00:00 2001 From: mubashir1osmani Date: Thu, 9 Jul 2026 01:03:04 -0400 Subject: [PATCH] Apply suggestions from code review Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --- tests/e2e/ui/create-virtual-key.spec.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/e2e/ui/create-virtual-key.spec.ts b/tests/e2e/ui/create-virtual-key.spec.ts index 990a4f90445..61d98171504 100644 --- a/tests/e2e/ui/create-virtual-key.spec.ts +++ b/tests/e2e/ui/create-virtual-key.spec.ts @@ -3,12 +3,13 @@ import { test, expect, Page } from "@playwright/test"; const ALLOWED_MODEL = process.env.E2E_UI_ALLOWED_MODEL ?? "gemini-2.5-flash"; const DENIED_MODEL = process.env.E2E_UI_DENIED_MODEL ?? "gpt-5.5"; -const adminAuth = { Authorization: `Bearer sk-1234` }; +const MASTER_KEY = process.env.LITELLM_MASTER_KEY ?? "sk-1234"; +const adminAuth = { Authorization: `Bearer ${MASTER_KEY}` }; async function loginAsProxyAdmin(page: Page): Promise { await page.goto("/ui/login"); await page.getByPlaceholder("Enter your username").fill("admin"); - await page.getByPlaceholder("Enter your password").fill("sk-1234"); + await page.getByPlaceholder("Enter your password").fill(MASTER_KEY); await page.getByRole("button", { name: "Login", exact: true }).click(); await expect(page.getByText("Virtual Keys")).toBeVisible({ timeout: 30_000 }); }