import { Page } from '@playwright/test'; import { PPMUi } from '../ppm/ui'; import { NAV, FIELD, REGION } from './labels'; /** Page actions for the MOCK SCP pack (same locator policy as the other packs). Every label comes from ./labels.ts. */ export class SCPUi extends PPMUi { constructor(page: Page) { super(page); } async scpNav(key: keyof typeof NAV) { await this.go(NAV[key]); } async planSearch(plan: string) { await this.scpNav('supply_planning'); await this.searchField(FIELD.plan, plan); } supplyDemand() { return this.page.getByRole('region', { name: REGION.supplyDemand, exact: true }); } }