fix: improve cancellation email of reschedule RR booking (#17768)

* fix: improve cancellation email of reschedule RR booking

* fix failing test

* fix: uses same lucky user when rescheduling RR booking also has a fixed host

* chore

* chore

* better message in the cancelled email

* fix

* fix

* add booker rescheduled in reassigned email to old host

* test

* add reassigned subtite

* fix: use same lucky user when reschedule RR booking has a fixed host

* fix: test

* fix: subtitle

---------

Co-authored-by: Anik Dhabal Babu <81948346+anikdhabal@users.noreply.github.com>
This commit is contained in:
Kartik SainiandAnik Dhabal Babu authored and GitHub committed 2025-08-27 13:28:33 -03:00
1 parent a4915184cd
commit afea724e4d
10 files changed
+107 -44

No files matched your search

@@ -711,10 +711,12 @@ export function expectSuccessfulRoundRobinReschedulingEmails({
emails,
newOrganizer,
prevOrganizer,
bookerReschedule,
}: {
emails: Fixtures["emails"];
newOrganizer: { email: string; name: string };
prevOrganizer: { email: string; name: string };
bookerReschedule?: boolean;
}) {
if (newOrganizer !== prevOrganizer) {
vi.waitFor(() => {
@@ -738,6 +740,19 @@ export function expectSuccessfulRoundRobinReschedulingEmails({
`${prevOrganizer.email}`
);
});
// if booking is rescheduled by booker, old organizer should recieve reassigned emails
if (bookerReschedule) {
vi.waitFor(() => {
expect(emails).toHaveEmail(
{
heading: "event_request_reassigned",
to: `${prevOrganizer.email}`,
},
`${prevOrganizer.email}`
);
});
}
} else {
vi.waitFor(() => {
// organizer should receive rescheduled emails