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
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();
|
|
}
|
|
} |