test: scope pending wizard selection assertion

This commit is contained in:
Alexandre Brandizzi 2026-09-29 12:33:15 -03:00
parent 123b1ec9b5
commit 52b682283c

View file

@ -169,7 +169,9 @@ test.describe("existing work order status menu", () => {
const menu = page.locator(".MuiPopover-paper").last();
await expect(menu.getByRole("button", { name: "Pending", exact: true })).toBeEnabled();
await menu.getByRole("button", { name: "Pending", exact: true }).click();
await expect(page.getByRole("button", { name: "Pending", exact: true })).toBeVisible();
await expect(
page.getByRole("dialog").getByRole("button", { name: "Pending", exact: true }),
).toBeVisible();
await page.getByRole("button", { name: "Create work order" }).click();
await expect(page.getByRole("heading", { name: "Type & schedule" })).toBeHidden();