feat: Paid and confirmed booking should be able to be rescheduled v1 (#11417)

Co-authored-by: Omar López <zomars@me.com>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
pull/10470/head^2
Ahmad 2023-09-27 18:49:13 +05:00 committed by GitHub
parent 19e6dbb781
commit c9b87bbf85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 1 deletions

View File

@ -143,7 +143,16 @@ test.describe("Stripe integration", () => {
expect(await paidBadge.innerText()).toBe("Paid"); 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("Payment should trigger a BOOKING_PAID webhook");
todo("Paid and confirmed booking should be able to be rescheduled");
}); });
}); });