Add no vin flow on lookup page
This commit is contained in:
parent
512df54bad
commit
afe20817df
2 changed files with 12 additions and 1 deletions
|
|
@ -68,7 +68,8 @@ export enum VehicleDamage {
|
|||
export enum VehicleLookupType {
|
||||
Vin,
|
||||
Address,
|
||||
LicensePlateNumber
|
||||
LicensePlateNumber,
|
||||
RatherNotShareVin
|
||||
}
|
||||
|
||||
export enum ServiceLocation {
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ export class VehicleLookupPage extends BasePage {
|
|||
readonly addressLookupButton: Locator;
|
||||
readonly licenseLookupButton: Locator;
|
||||
readonly vinLookupPage: VinLookupPage;
|
||||
readonly ratherNotShareVinButton: Locator;
|
||||
readonly vehicleLookupAddressPage: VehicleLookupAddressPage;
|
||||
readonly vehicleLookupLicensePage: VehicleLookupLicensePage;
|
||||
issPageValue = 'vehicle-lookup';
|
||||
|
|
@ -22,6 +23,7 @@ export class VehicleLookupPage extends BasePage {
|
|||
this.vinLookupButton = page.getByLabel('Provide my VIN', { exact: true });
|
||||
this.addressLookupButton = page.getByLabel('Provide my home address', { exact: true });
|
||||
this.licenseLookupButton = page.getByLabel('Provide my license plate #', { exact: true });
|
||||
this.ratherNotShareVinButton = page.getByText(/rather not share my vin/i);
|
||||
this.vinLookupPage = new VinLookupPage(page);
|
||||
|
||||
// this.validateURL(this.url);
|
||||
|
|
@ -41,6 +43,10 @@ export class VehicleLookupPage extends BasePage {
|
|||
await this.selectVinLookup();
|
||||
await this.nextPage();
|
||||
break;
|
||||
case VehicleLookupType.RatherNotShareVin:
|
||||
await this.selectRatherNotShareVin();
|
||||
await this.nextPage();
|
||||
break;
|
||||
default:
|
||||
console.error('VehicleLookupPage >> DATA ISSUE: VehicleLookupType not provided');
|
||||
break;
|
||||
|
|
@ -58,4 +64,8 @@ export class VehicleLookupPage extends BasePage {
|
|||
async selectLicenseLookup(){
|
||||
await this.licenseLookupButton.click();
|
||||
}
|
||||
|
||||
async selectRatherNotShareVin(){
|
||||
await this.ratherNotShareVinButton.click();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue