mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-09-14 10:52:17 +03:00
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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user