Fix tests (#8640)
This commit is contained in:
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.
|
||||
|
||||
Reference in new issue
Block a user