From c9b87bbf85a3ef14c0d999f45e83499adf5d0020 Mon Sep 17 00:00:00 2001 From: Ahmad <57593864+Ahmadkashif@users.noreply.github.com> Date: Wed, 27 Sep 2023 18:49:13 +0500 Subject: [PATCH] feat: Paid and confirmed booking should be able to be rescheduled v1 (#11417) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Omar López Co-authored-by: Peer Richelsen --- apps/web/playwright/integrations-stripe.e2e.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/apps/web/playwright/integrations-stripe.e2e.ts b/apps/web/playwright/integrations-stripe.e2e.ts index 65dfc17950..c8b434bee0 100644 --- a/apps/web/playwright/integrations-stripe.e2e.ts +++ b/apps/web/playwright/integrations-stripe.e2e.ts @@ -143,7 +143,16 @@ test.describe("Stripe integration", () => { expect(await paidBadge.innerText()).toBe("Paid"); }); + test("Paid and confirmed booking should be able to be rescheduled", async ({ page, users }) => { + await Promise.all([page.waitForURL("/booking/*"), page.click('[data-testid="reschedule-link"]')]); + + await selectFirstAvailableTimeSlotNextMonth(page); + + await page.click('[data-testid="confirm-reschedule-button"]'); + + await expect(page.getByText("This meeting is scheduled")).toBeVisible(); + }); + todo("Payment should trigger a BOOKING_PAID webhook"); - todo("Paid and confirmed booking should be able to be rescheduled"); }); });