mirror of
https://github.com/Sea-Haven-Industries/shoc-frontend-new.git
synced 2026-09-30 09:13:11 +00:00
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:
parent
e6f5199da9
commit
49923c9a02
1 changed files with 4 additions and 2 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue