import { type Page, type Locator } from "@playwright/test"; export class CompanyCreateFormPage { readonly page: Page; readonly legalNameInput: Locator; readonly baseCurrencySelect: Locator; readonly taxIdInput: Locator; readonly registrationNumberInput: Locator; readonly streetInput: Locator; readonly cityInput: Locator; readonly stateInput: Locator; readonly postalCodeInput: Locator; readonly countryInput: Locator; readonly submitButton: Locator; readonly cancelButton: Locator; constructor(page: Page) { this.page = page; this.legalNameInput = page.getByLabel("Legal Name"); // Base Currency is a Select (Base UI) component. FormControl's Slot forwards // the id to the Select's outer wrapper
, not to the trigger