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): accept trailing slashes in migration sidebar links
Yuneng Jianga08fb489cdb2
diff --git a/tests/e2e/ui/tests/migration/migratedPages.spec.ts b/tests/e2e/ui/tests/migration/migratedPages.spec.tsindex 547330190bd..bc96d9a6c66 100644--- a/tests/e2e/ui/tests/migration/migratedPages.spec.ts+++ b/tests/e2e/ui/tests/migration/migratedPages.spec.ts@@ -29,12 +29,12 @@ async function expectRendered(page: Page) {}/**- * Click a migrated page's sidebar link. Migrated items render as <a href=".../ui/<segment>">;+ * Click a migrated page's sidebar link. Migrated items render as <a href=".../ui/<segment>/">;* nested ones live under collapsible groups whose children only render while the* group is open, so expand collapsed groups until the link is clickable.*/async function clickSidebar(page: Page, segment: string) {- const link = sidebar(page).locator(`a[href$="/ui/${segment}"]`).first();+ const link = sidebar(page).locator(`a[href$="/ui/${segment}"], a[href$="/ui/${segment}/"]`).first();const collapsedGroups = sidebar(page).getByRole("button", { expanded: false });for (let i = 0; i < 8 && !(await link.isVisible().catch(() => false)); i++) {const stillCollapsed = await collapsedGroups.count();