DigitalConsumer.FixMyGlass/playwright-tests/pages/BaseHomepage.ts
maguire-arman a2ca9134d1 Initializes Playwright test framework
Sets up the core infrastructure for Playwright-based automated testing, including:
- Docker support for consistent environments
- Azure Pipelines configuration for CI/CD
- Page Object Model structure for maintainable tests
- Test data, validation, and rule engine implementation
- Test configuration for alerts and other scenarios
2025-05-08 15:45:05 -04:00

22 lines
No EOL
589 B
TypeScript

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<void>;
// Method to check if this is the correct homepage variant
abstract isCurrentVariant(): Promise<boolean>;
async goto() {
await this.page.goto(process.env['BASE_URL']!);
}
}