Add method for non recal TPA flow
This commit is contained in:
parent
81862af867
commit
c430ee82ef
1 changed files with 11 additions and 1 deletions
|
|
@ -15,6 +15,7 @@ export class ProviderPreferencePage extends BasePage {
|
|||
readonly acknowledgeCheckbox: Locator;
|
||||
readonly tpaRecalModalContinueButton: Locator;
|
||||
readonly stateLawModalText: Locator;
|
||||
readonly stateLawRepairModalText: Locator;
|
||||
readonly stateLawModalOkayButton: Locator;
|
||||
issPageValue = 'provider-preference';
|
||||
|
||||
|
|
@ -33,8 +34,9 @@ export class ProviderPreferencePage extends BasePage {
|
|||
this.acknowledgeAdasCheckbox = this.page.getByRole('checkbox', { name: /I acknowledge/i })
|
||||
this.tpaRecalModalContinueButton = this.page.locator('#modalbtn', { hasText: 'Continue' });
|
||||
|
||||
// State law modal
|
||||
// State law modal - is there a difference between repair and replacement modals? need to check
|
||||
this.stateLawModalText = this.page.getByText(/law prohibits us from requiring you.*You have the right to select the motor vehicle repair shop of your choice\./is);
|
||||
this.stateLawRepairModalText = this.page.getByText(/We are prohibited by law from requiring that repairs be done at a specific automotive repair dealer. You are entitled to select the auto body repair shop to repair damage covered by us\./is);
|
||||
this.stateLawModalOkayButton = this.page.getByRole('button', { name: 'Okay' })
|
||||
}
|
||||
|
||||
|
|
@ -64,7 +66,15 @@ export class ProviderPreferencePage extends BasePage {
|
|||
await this.tpaRecalModalContinueButton.click();
|
||||
}
|
||||
|
||||
async scheduleTPAWithoutAdas() {
|
||||
await this.findAnotherShopButton.click();
|
||||
}
|
||||
|
||||
async validateStateLawModalIsVisible() {
|
||||
await expect.soft(this.stateLawModalText).toBeVisible();
|
||||
}
|
||||
|
||||
async validateStateLawRepairModalIsVisible() {
|
||||
await expect.soft(this.stateLawRepairModalText).toBeVisible();
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue