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
Fix e2e ui playwright test (#16799)
yuneng-jiangfe05e33723fa
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 f5148bed16d..8971a84649e 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@@ -6,17 +6,17 @@ Basic UI TestClick on all the tabs ensure nothing is broken*/-import { test, expect } from '@playwright/test';+import { test, expect } from "@playwright/test";-test('admin login test', async ({ page }) => {+test("admin login test", async ({ page }) => {// Go to the specified URL- await page.goto('http://localhost:4000/ui');+ await page.goto("http://localhost:4000/ui");// Enter "admin" in the username input field- await page.fill('input[name="username"]', 'admin');+ await page.fill('input[name="username"]', "admin");// Enter "gm" in the password input field- await page.fill('input[name="password"]', 'gm');+ await page.fill('input[name="password"]', "gm");// Optionally, you can add an assertion to verify the login button is enabledconst loginButton = page.locator('input[type="submit"]');@@ -25,20 +25,22 @@ test('admin login test', async ({ page }) => {// Optionally, you can click the login button to submit the formawait loginButton.click();const tabs = [- 'Virtual Keys',- 'Test Key',- 'Models',- 'Usage',- 'Teams',- 'Internal User',- 'Settings',- 'Experimental',- 'API Reference',- 'Model Hub'+ "Virtual Keys",+ "Test Key",+ "Models",+ "Usage",+ "Teams",+ "Internal User",+ "Settings",+ "Experimental",+ "API Reference",+ "AI Hub",];for (const tab of tabs) {- const tabElement = page.locator('span.ant-menu-title-content', { hasText: tab });+ const tabElement = page.locator("span.ant-menu-title-content", {+ hasText: tab,+ });await tabElement.click();}});