fix: Do not refund payments when cancelling bookings (#13924)

* Remove logic that refunds on cancel booking

* Remove cancelled refund booking test
This commit is contained in:
Joe Au-Yeung authored and GitHub committed 2024-03-13 21:46:07 +00:00
1 parent 2803b5072c
commit 802fbdf491
2 files changed
+1 -135

No files matched your search

@@ -219,14 +219,6 @@ test.describe("Stripe integration", () => {
await user.confirmPendingPayment();
});
test("Cancelled paid booking should be refunded", async ({ page, users, request }) => {
await page.click('[data-testid="cancel"]');
await page.click('[data-testid="confirm_cancel"]');
await expect(await page.locator('[data-testid="cancelled-headline"]').first()).toBeVisible();
await expect(page.getByText("This booking payment has been refunded")).toBeVisible();
});
test("Payment should confirm pending payment booking", async ({ page, users }) => {
await page.goto("/bookings/upcoming");