Add bailout flags
This commit is contained in:
parent
9baff87412
commit
a3a328be73
2 changed files with 6 additions and 3 deletions
|
|
@ -8,5 +8,6 @@ export default interface IBailoutFlags {
|
||||||
isVehicleLookupBailout: boolean,
|
isVehicleLookupBailout: boolean,
|
||||||
isPriceServiceErrorBailout: boolean,
|
isPriceServiceErrorBailout: boolean,
|
||||||
isCoverageCancelledByUser: boolean,
|
isCoverageCancelledByUser: boolean,
|
||||||
isAPIErrorBailout: boolean
|
isAPIErrorBailout: boolean,
|
||||||
|
isBailoutAfterVinLookup: boolean,
|
||||||
}
|
}
|
||||||
|
|
@ -18,8 +18,6 @@ export class BailoutPage extends BasePage {
|
||||||
this.lastNameTextBox = this.page.locator('#lastNameField');
|
this.lastNameTextBox = this.page.locator('#lastNameField');
|
||||||
this.phoneNumberTextBox = this.page.locator('#phoneNumberField');
|
this.phoneNumberTextBox = this.page.locator('#phoneNumberField');
|
||||||
this.emailAddressTextBox = this.page.locator('#emailAddressField');
|
this.emailAddressTextBox = this.page.locator('#emailAddressField');
|
||||||
// this.page.waitForLoadState();
|
|
||||||
// this.validateURL(this.url);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async validateBailoutDetails(customerDetails: ICustomerDetails, bailoutCode: number) {
|
async validateBailoutDetails(customerDetails: ICustomerDetails, bailoutCode: number) {
|
||||||
|
|
@ -31,6 +29,10 @@ export class BailoutPage extends BasePage {
|
||||||
expect.soft(await this.getBailoutCode()).toEqual(bailoutCode);
|
expect.soft(await this.getBailoutCode()).toEqual(bailoutCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async validateBailoutCode(bailoutCode: number) {
|
||||||
|
expect.soft(await this.getBailoutCode()).toEqual(bailoutCode);
|
||||||
|
}
|
||||||
|
|
||||||
async validateBailoutDetailsNotNull(){
|
async validateBailoutDetailsNotNull(){
|
||||||
await this.firstNameTextBox.waitFor({state:'visible'})
|
await this.firstNameTextBox.waitFor({state:'visible'})
|
||||||
expect(this.firstNameTextBox.inputValue()).not.toBe('');
|
expect(this.firstNameTextBox.inputValue()).not.toBe('');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue