import { type Page, type Locator } from "@playwright/test"; export class ItemCreateFormPage { readonly page: Page; readonly skuInput: Locator; readonly nameInput: Locator; readonly unitSelect: Locator; readonly submitButton: Locator; readonly cancelButton: Locator; constructor(page: Page) { this.page = page; this.skuInput = page.getByLabel("SKU"); this.nameInput = page.getByLabel("Name"); // Unit of Measure is fixed to "Each (each)" and rendered as a disabled // Select (Base UI). The FormControl Slot passes `id` to the Select's // outer
, not to the