Update testUtils.ts
parent
892bb90d9d
commit
e89520d7d6
|
@ -96,6 +96,11 @@ export async function bookFirstEvent(page: Page) {
|
|||
await bookTimeSlot(page);
|
||||
|
||||
// Make sure we're navigated to the success page
|
||||
await page.waitForNavigation({
|
||||
url(url) {
|
||||
return url.pathname.endsWith("/success");
|
||||
},
|
||||
});
|
||||
await expect(page.locator("[data-testid=success-page]")).toBeVisible();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue