Clean up provider preference methods
This commit is contained in:
parent
e940bf1eb3
commit
0f363d8262
1 changed files with 5 additions and 8 deletions
|
|
@ -40,17 +40,11 @@ export class ProviderPreferencePage extends BasePage {
|
|||
this.stateLawModalOkayButton = this.page.getByRole('button', { name: 'Okay' })
|
||||
}
|
||||
|
||||
async selectProvider(isSafelite = true) {
|
||||
async selectProvider(isSafelite: boolean) {
|
||||
if (isSafelite) {
|
||||
await this.scheduleNowButton.click();
|
||||
await this.nextPage();
|
||||
}
|
||||
else {
|
||||
await this.findAnotherShopButton.waitFor({ state: 'visible' });
|
||||
await this.findAnotherShopButton.click();
|
||||
await this.tpaRecalModal.waitFor({ state: 'visible' });
|
||||
await this.scheduleTPAWithAdas();
|
||||
}
|
||||
}
|
||||
|
||||
async scheduleWithSafeliteADAS() {
|
||||
|
|
@ -60,8 +54,11 @@ export class ProviderPreferencePage extends BasePage {
|
|||
}
|
||||
|
||||
async scheduleTPAWithAdas() {
|
||||
await this.findAnotherShopButton.waitFor({ state: 'visible' });
|
||||
await this.findAnotherShopButton.click();
|
||||
await this.tpaRecalModal.waitFor({ state: 'visible' });
|
||||
await this.learnMoreLink.click();
|
||||
await this.noButton.click();
|
||||
await this.noButton.click(); // continue to schedule with TPA even with recal disclaimer
|
||||
await this.acknowledgeAdasCheckbox.click();
|
||||
await this.tpaRecalModalContinueButton.click();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue