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.
16 lines
No EOL
501 B
TypeScript
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();
|
|
}
|
|
} |