Fix for handling premium package flows

This commit is contained in:
JennyNou 2026-03-22 22:52:43 -04:00
parent 1941bd8eb0
commit 5dc79f8e38

View file

@ -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();