Fix for handling premium package flows
This commit is contained in:
parent
1941bd8eb0
commit
5dc79f8e38
1 changed files with 4 additions and 3 deletions
|
|
@ -29,9 +29,10 @@ export class ServicePackagesPage extends BasePage {
|
|||
await this.standardPackageButton.check();
|
||||
} else if (servicePackage === ServicePackage.Premium) {
|
||||
await this.premiumPackageButton.check();
|
||||
if (await this.wiperModal.isVisible()) {
|
||||
await this.wiperModal.waitFor({ state: 'visible', timeout: 5000 });
|
||||
await this.wiperModalCloseButton.click();
|
||||
try {await this.wiperModal.waitFor({ state: 'visible', timeout: 5000 });
|
||||
await this.wiperModalCloseButton.click();
|
||||
} catch {
|
||||
await this.continueButton.click();
|
||||
}
|
||||
} else if (servicePackage === ServicePackage.GlassOnly) {
|
||||
await this.glassOnlyPackageButton.check();
|
||||
|
|
|
|||
Loading…
Reference in a new issue