export class LeanCheckoutPage { constructor( private locators: { card: { fill(v: string): Promise }; pay: { click(): Promise }; note: { fill(v: string): Promise }; }, ) {} // Three actions — under fat-method threshold async pay(card: string) { await this.locators.card.fill(card); await this.locators.note.fill('ok'); await this.locators.pay.click(); } }