import { Page, expect } from "@playwright/test" import { clickToReveal, selectOption, comboboxByLabel } from "../support/ui" // Locators verified against Frontend/erp-system/app/dashboard/receiving/grn/new/page.tsx // and .../grn/[id]/page.tsx. Things that DOM inspection caught and a placeholder-only guess // would not have: // - The Qty/Unit cost/Disc%/VAT% cells carry no accessible name // (no htmlFor/aria-label) - located by column position within the row instead. // - On a PO-based line (line.poLineId set) Item/UOM render as plain text, not a Select - // fillFirstLine() only touches the item combobox when one is actually present (checked by // role alone, not name - see below). // - Every page here intermittently throws a real React hydration error (#418) that blanks a // random subset of Select triggers' placeholder text for that page's lifetime, WITHOUT // affecting their sibling