In scenarios that reach the order confirmation page, the query string includes more than the issPageValue, whiche was breaking validateURL
25 lines
No EOL
996 B
TypeScript
25 lines
No EOL
996 B
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;
|
|
issPageValue = '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);
|
|
}
|
|
} |