import { Page, Locator } from '@playwright/test'; import { BasePage } from './BasePage'; export abstract class BaseHomePage extends BasePage { readonly page: Page; readonly url: string; constructor(page: Page) { super(page); this.page = page; this.url = process.env['BASE_URL']!; } abstract letsGetStarted(zip?: string): Promise; // Method to check if this is the correct homepage variant abstract isCurrentVariant(): Promise; async goto() { await this.page.goto(process.env['BASE_URL']!); } }