test(work-orders): target the Insert WO # placeholder in the SH number e2e

The inline create row now renders the empty WO # cell as a required
"Insert WO # *" field instead of "-", so the spec waited for a cell that
no longer exists.
This commit is contained in:
Codex Review Integration 2026-09-16 22:06:32 -03:00
parent e6f5199da9
commit 49923c9a02

View file

@ -97,8 +97,10 @@ test.describe("inline WO number SH placeholder", () => {
.getByRole("button", { name: /Add WO/ })
.first()
.click();
const inlineRow = page.locator("tr").filter({ has: page.getByText("-", { exact: true }) });
await inlineRow.getByText("-", { exact: true }).first().click();
await page
.getByText(/^Insert WO #/)
.first()
.click();
const draftInput = page.getByLabel("Work order number");
await draftInput.fill("SH00001");
await draftInput.press("Enter");