Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Commit

Permalink
feat: Paid and confirmed booking should be able to be rescheduled v1 (c…
Browse files Browse the repository at this point in the history
…alcom#11417)

Co-authored-by: Omar López <[email protected]>
Co-authored-by: Peer Richelsen <[email protected]>
  • Loading branch information
3 people authored Sep 27, 2023
1 parent 19e6dbb commit c9b87bb
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion apps/web/playwright/integrations-stripe.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
});
});

0 comments on commit c9b87bb

Please sign in to comment.