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): assert sidebar expansion without a self-resolving locator
Yuneng Jiang78e1c658b482
diff --git a/tests/e2e/ui/tests/migration/migratedPages.spec.ts b/tests/e2e/ui/tests/migration/migratedPages.spec.tsindex 473d0b795f1..547330190bd 100644--- a/tests/e2e/ui/tests/migration/migratedPages.spec.ts+++ b/tests/e2e/ui/tests/migration/migratedPages.spec.ts@@ -35,11 +35,12 @@ async function expectRendered(page: Page) {*/async function clickSidebar(page: Page, segment: string) {const link = sidebar(page).locator(`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 collapsedGroup = sidebar(page).getByRole("button", { expanded: false }).first();- if (!(await collapsedGroup.isVisible().catch(() => false))) break;- await collapsedGroup.click();- await expect(collapsedGroup).toHaveAttribute("aria-expanded", "true");+ const stillCollapsed = await collapsedGroups.count();+ if (stillCollapsed === 0) break;+ await collapsedGroups.first().click();+ await expect(collapsedGroups).toHaveCount(stillCollapsed - 1);}await link.click();}