test(dashboard): open the proxy toolbar overflow menu before bulk assign

PR #9870 moved the proxy-registry bulk-assign action into the toolbar's
"More actions" (…) overflow menu, which renders its items only while open.
The e2e smoke flow still clicked the testid directly, so the locator never
resolved and the test burned its full 180s budget.

Open the menu first and assert it is visible before clicking; every existing
assertion is unchanged.
This commit is contained in:
Xiangzhe
2026-08-25 20:32:59 -03:00
parent 01c40d7379
commit b212a5a3f7

View File

@@ -197,7 +197,12 @@ test.describe("Proxy Registry smoke flow", () => {
await expect(page.locator("table")).toContainText("http://smoke-updated.local:8080");
await page.getByTestId("proxy-registry-open-bulk").click();
// Bulk assign moved into the toolbar's "More actions" (⋯) overflow menu in
// #9870 — the menu only renders its items once opened, so open it first.
await page.getByTestId("proxy-registry-more-actions").click();
const actionsMenu = page.getByRole("menu");
await expect(actionsMenu).toBeVisible();
await actionsMenu.getByTestId("proxy-registry-open-bulk").click();
const bulkDialog = page.getByRole("dialog");
await expect(bulkDialog.getByText("Bulk Proxy Assignment")).toBeVisible();
await bulkDialog.getByTestId("proxy-registry-bulk-scopeids-input").fill("openai,anthropic");