DigitalConsumer.ISS/playwright-tests/pages/VehicleLookupAddressPage.ts
Alex Humphries b935cf0efa Fixed some failing tests, some tweaks to url validation
Extending URL validation timeout and adding some more logging/stepping
to better see what is happening during tests
2025-03-07 11:01:59 -05:00

25 lines
No EOL
1 KiB
TypeScript

import { type Page } from '@playwright/test';
import { BasePage } from './BasePage';
import { AddressForm } from './forms/AddressForm';
import { VehicleSelectionForm } from './forms/VehicleSelectionForm';
import { ICustomerDetails, IVehicleDetails } from '@business-logic/types/CustomerDetails';
export class VehicleLookupAddressPage extends BasePage {
readonly page: Page;
readonly addressForm: AddressForm;
readonly vehicleSelectionForm: VehicleSelectionForm;
url = process.env['BASE_URL']! + '/?issPage=address-lookup';
constructor(page: Page) {
super(page);
this.page = page;
this.addressForm = new AddressForm(page);
this.vehicleSelectionForm = new VehicleSelectionForm(page);
}
async lookupVehicleByAddress(customerDetails: ICustomerDetails, vehicleDetails: IVehicleDetails) {
await this.addressForm.populateAddress(customerDetails);
//await this.nextPage();
//await this.vehicleSelectionForm.selectVehicle(vehicleDetails);
}
}