DigitalConsumer.FixMyGlass/playwright-tests/pages/forms/VehicleSelectionForm.ts
maguire-arman 404dda6556 Adds Playwright test framework for FMG
Initial commit of the Playwright test framework, including:
- Configuration files for Playwright, Docker, and Sauce Labs
- Test case structure and page object models
- CI/CD pipeline configuration
- Utilities and business logic implementations

This framework will be used for end-to-end testing of the FMG application.
2025-04-07 15:40:31 -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();
}
}