From 5c2b561a5c381171c99b338e20447f5085cc94d4 Mon Sep 17 00:00:00 2001 From: Carina Wollendorfer <30310907+CarinaWolli@users.noreply.github.com> Date: Fri, 3 May 2024 10:59:52 -0400 Subject: [PATCH] fix webhook e2e test (#14850) Co-authored-by: CarinaWolli Co-authored-by: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com> --- apps/web/playwright/webhook.e2e.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/playwright/webhook.e2e.ts b/apps/web/playwright/webhook.e2e.ts index 62c82182300dd1..f3aae9fb8bd456 100644 --- a/apps/web/playwright/webhook.e2e.ts +++ b/apps/web/playwright/webhook.e2e.ts @@ -427,7 +427,7 @@ test.describe("BOOKING_RESCHEDULED", async () => { await page.locator('[data-testid="confirm-reschedule-button"]').click(); - await expect(page).toHaveURL(/.*booking/); + await expect(page.getByTestId("success-page")).toBeVisible(); // eslint-disable-next-line @typescript-eslint/no-non-null-assertion const newBooking = await prisma.booking.findFirst({ where: { fromReschedule: booking?.uid } })!; @@ -494,7 +494,7 @@ test.describe("BOOKING_RESCHEDULED", async () => { await page.locator('[data-testid="confirm-reschedule-button"]').click(); - await expect(page).toHaveURL(/.*booking/); + await expect(page.getByTestId("success-page")).toBeVisible(); const newBooking = await prisma.booking.findFirst({ where: {