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(e2e): realign Admin UI specs with the MCP dialog and keyless landing (#34870)
yuneng-jiang3c0b1db63368
diff --git a/tests/e2e/ui/tests/internal-user/internalUserNoTeam.spec.ts b/tests/e2e/ui/tests/internal-user/internalUserNoTeam.spec.tsindex 92e46d6b27c..3affa4d898d 100644--- a/tests/e2e/ui/tests/internal-user/internalUserNoTeam.spec.ts+++ b/tests/e2e/ui/tests/internal-user/internalUserNoTeam.spec.ts@@ -1,5 +1,6 @@import { test, expect } from "@playwright/test";-import { dismissFeedbackPopup } from "../../helpers/navigation";+import { navigateToPage } from "../../helpers/navigation";+import { Page } from "../../fixtures/pages";/*** Logs in fresh inside the test rather than reusing a stored session because@@ -16,9 +17,12 @@ test.describe("Internal User with no team memberships", () => {await page.getByPlaceholder("Enter your username").fill("[email protected]");await page.getByPlaceholder("Enter your password").fill("test");await page.getByRole("button", { name: "Login", exact: true }).click();+ // A non-admin with no keys lands on /ui/connect, so the keys dashboard has+ // to be asked for explicitly once that redirect settles.+ await page.waitForURL(/\/ui\/connect/, { timeout: 30_000 });+ await navigateToPage(page, Page.ApiKeys);// Scope to the sidebar; the top-bar breadcrumb also shows "Virtual Keys".await expect(page.getByRole("complementary").getByText("Virtual Keys")).toBeVisible({ timeout: 15_000 });- await dismissFeedbackPopup(page);// Open the Create Key modal.await page.getByRole("button", { name: /Create New Key/i }).click();diff --git a/tests/e2e/ui/tests/mcp/mcpServers.spec.ts b/tests/e2e/ui/tests/mcp/mcpServers.spec.tsindex 7c4a7cb0568..37aabf9c057 100644--- a/tests/e2e/ui/tests/mcp/mcpServers.spec.ts+++ b/tests/e2e/ui/tests/mcp/mcpServers.spec.ts@@ -16,7 +16,7 @@ test.describe("MCP Servers", () => {// Open the discovery modal, then drop into the custom-server formawait page.getByRole("button", { name: /Add New MCP Server/i }).click();- const discovery = page.locator(".ant-modal:visible").filter({ hasText: "Add MCP Server" });+ const discovery = page.getByRole("dialog").filter({ hasText: "Add MCP Server" });await expect(discovery).toBeVisible({ timeout: 5_000 });await discovery.getByRole("button", { name: /Custom Server/i }).click();