This commit is contained in:
Hariom Balhara authored and GitHub committed 2023-05-03 12:30:26 -03:00
1 parent 56acfa38f1
commit 3595ba9824
3 files changed
+11 -4

No files matched your search

@@ -91,10 +91,11 @@ async function selectFirstAvailableTimeSlotNextMonth(frame: Frame, page: Page) {
}
export async function bookFirstEvent(username: string, frame: Frame, page: Page) {
// Click first event type
// Click first event type on Profile Page
await frame.click('[data-testid="event-type-link"]');
await frame.waitForURL((url) => {
return !!url.pathname.match(new RegExp(`/${username}/.*$`));
// Wait for reaching the event page
return !!url.pathname.match(new RegExp(`/${username}/.+$`));
});
// Let current month dates fully render.