import { type Page, type Locator } from "@playwright/test"; export class SiteCreateFormPage { readonly page: Page; readonly companySelect: Locator; readonly nameInput: Locator; readonly typeSelect: Locator; readonly streetInput: Locator; readonly cityInput: Locator; readonly stateInput: Locator; readonly postalCodeInput: Locator; readonly countrySelect: Locator; readonly timezoneSelect: Locator; readonly submitButton: Locator; readonly cancelButton: Locator; constructor(page: Page) { this.page = page; // Company and Type are Select (Base UI) components. FormControl's Slot // forwards the id to the Select's outer wrapper
, not to the trigger //