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
e2e changes
yuneng-jiang636f26d8a164
diff --git a/tests/proxy_admin_ui_tests/e2e_ui_tests/login_to_ui.spec.ts b/tests/proxy_admin_ui_tests/e2e_ui_tests/login_to_ui.spec.tsindex b9c16299cc0..c4a1dc77c33 100644--- a/tests/proxy_admin_ui_tests/e2e_ui_tests/login_to_ui.spec.ts+++ b/tests/proxy_admin_ui_tests/e2e_ui_tests/login_to_ui.spec.ts@@ -11,6 +11,7 @@ import { test, expect } from "@playwright/test";test("admin login test", async ({ page }) => {// Go to the specified URLawait page.goto("http://localhost:4000/ui");+ await page.waitForLoadState("networkidle");await page.screenshot({ path: "test-results/login_before.png" });diff --git a/tests/proxy_admin_ui_tests/e2e_ui_tests/require_auth_for_dashboard.spec.ts b/tests/proxy_admin_ui_tests/e2e_ui_tests/require_auth_for_dashboard.spec.tsindex 2b198d6ab7e..4e4bd2fcd93 100644--- a/tests/proxy_admin_ui_tests/e2e_ui_tests/require_auth_for_dashboard.spec.ts+++ b/tests/proxy_admin_ui_tests/e2e_ui_tests/require_auth_for_dashboard.spec.ts@@ -10,7 +10,7 @@ test.describe("Authentication Checks", () => {page.on("console", (msg) => console.log("PAGE LOG:", msg.text()));const protectedPageUrl = "http://localhost:4000/ui?page=llm-playground";- const expectedRedirectUrl = "http://localhost:4000/ui/login";+ const expectedRedirectUrl = "http://localhost:4000/ui/login/";console.log(`Attempting to navigate to protected page: ${protectedPageUrl}`diff --git a/tests/proxy_admin_ui_tests/e2e_ui_tests/search_users.spec.ts b/tests/proxy_admin_ui_tests/e2e_ui_tests/search_users.spec.tsindex a384248a5f7..66d0ad29658 100644--- a/tests/proxy_admin_ui_tests/e2e_ui_tests/search_users.spec.ts+++ b/tests/proxy_admin_ui_tests/e2e_ui_tests/search_users.spec.ts@@ -21,8 +21,11 @@ test("user search test", async ({ page }) => {// Login firstawait page.goto("http://localhost:4000/ui");+ await page.waitForLoadState("networkidle");console.log("Navigated to login page");+ page.screenshot({ path: "test-results/search_users_before_login.png" });+// Wait for login form to be visibleawait page.waitForSelector('input[name="username"]', { timeout: 10000 });console.log("Login form is visible");@@ -128,6 +131,7 @@ test("user filter test", async ({ page }) => {// Login firstawait page.goto("http://localhost:4000/ui");+ await page.waitForLoadState("networkidle");console.log("Navigated to login page");// Wait for login form to be visiblediff --git a/tests/proxy_admin_ui_tests/e2e_ui_tests/view_internal_user.spec.ts b/tests/proxy_admin_ui_tests/e2e_ui_tests/view_internal_user.spec.tsindex dd6f812df4a..a7843d52916 100644--- a/tests/proxy_admin_ui_tests/e2e_ui_tests/view_internal_user.spec.ts+++ b/tests/proxy_admin_ui_tests/e2e_ui_tests/view_internal_user.spec.ts@@ -7,6 +7,9 @@ import { test, expect } from "@playwright/test";test("view internal user page", async ({ page }) => {// Go to the specified URLawait page.goto("http://localhost:4000/ui");+ await page.waitForLoadState("networkidle");++ page.screenshot({ path: "test-results/view_internal_user_before_login.png" });// Enter "admin" in the username input fieldawait page.fill('input[name="username"]', "admin");diff --git a/tests/proxy_admin_ui_tests/utils/login.ts b/tests/proxy_admin_ui_tests/utils/login.tsindex 716efe58c76..5749006cdea 100644--- a/tests/proxy_admin_ui_tests/utils/login.ts+++ b/tests/proxy_admin_ui_tests/utils/login.ts@@ -3,8 +3,10 @@ import { Page, expect } from "@playwright/test";export async function loginToUI(page: Page) {// Login firstawait page.goto("http://localhost:4000/ui");+ await page.waitForLoadState("networkidle");console.log("Navigated to login page");+ page.screenshot({ path: "test-results/login_utils_before.png" });// Wait for login form to be visibleawait page.waitForSelector('input[name="username"]', { timeout: 10000 });console.log("Login form is visible");