Add await so that PW can click on first time slot

This commit is contained in:
JennyNou 2026-03-10 14:46:32 -04:00
parent 7481aff268
commit 8cca6f5afc

View file

@ -58,7 +58,7 @@ export class SchedulePage extends BasePage {
if (await this.inShopButton.isVisible() && appointmentDetails?.serviceLocation !== ServiceLocation.DropOff) {
await this.inShopButton.click();
(await this.getTimeSlot(1)).click();
await (await this.getTimeSlot(1)).click();
} else if (appointmentDetails?.serviceLocation === ServiceLocation.DropOff) {
await this.inShopButton.isVisible();
await this.inShopButton.click();