DigitalConsumer.FixMyGlass/playwright-tests/pages/forms/VehicleSelectionForm.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

16 lines
No EOL
501 B
TypeScript

import { type Page } from '@playwright/test';
import { BasePage } from '../BasePage';
import { IVehicleDetails } from '@business-logic/types/CustomerDetails';
export class VehicleSelectionForm extends BasePage {
readonly page: Page;
constructor(page: Page) {
super(page);
this.page = page;
}
async selectVehicle(vehicleDetails: IVehicleDetails){
await this.page.locator('label').filter({hasText: vehicleDetails.model}).locator('div').first().click();
}
}