Update testUtils.ts

pull/2728/head
zomars 2022-05-11 16:55:30 -06:00
parent 892bb90d9d
commit e89520d7d6
1 changed files with 5 additions and 0 deletions

View File

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