fix: Set teamMemberEmail server side for CRM RR Skip (#16367)
Co-authored-by: Keith Williams <[email protected]> Co-authored-by: zomars <[email protected]>
This commit is contained in:
17 files changed
+140
-114
No files matched your search
@@ -175,12 +175,10 @@ describe("getSchedule", () => {
|
||||
endTime: `${plus2DateString}T18:29:59.999Z`,
|
||||
timeZone: Timezones["+5:30"],
|
||||
isTeamEvent: true,
|
||||
bookerEmail: "test@test.com",
|
||||
teamMemberEmail: "example@example.com",
|
||||
},
|
||||
});
|
||||
|
||||
expect(scheduleWithLeadSkip.teamMember).toBe("[email protected]");
|
||||
|
||||
// only slots where [email protected] is available
|
||||
expect(scheduleWithLeadSkip).toHaveTimeSlots(
|
||||
[`11:30:00.000Z`, `12:30:00.000Z`, `13:30:00.000Z`, `14:30:00.000Z`, `15:30:00.000Z`],
|
||||
@@ -197,12 +195,9 @@ describe("getSchedule", () => {
|
||||
endTime: `${plus2DateString}T18:29:59.999Z`,
|
||||
timeZone: Timezones["+5:30"],
|
||||
isTeamEvent: true,
|
||||
bookerEmail: "[email protected]",
|
||||
},
|
||||
});
|
||||
|
||||
expect(scheduleWithoutLeadSkip.teamMember).toBe(undefined);
|
||||
|
||||
// slots where either one of the rr hosts is available
|
||||
expect(scheduleWithoutLeadSkip).toHaveTimeSlots(
|
||||
[
|
||||
@@ -325,12 +320,10 @@ describe("getSchedule", () => {
|
||||
endTime: `${plus2DateString}T18:29:59.999Z`,
|
||||
timeZone: Timezones["+5:30"],
|
||||
isTeamEvent: true,
|
||||
bookerEmail: "test@test.com",
|
||||
teamMemberEmail: "example@example.com",
|
||||
},
|
||||
});
|
||||
|
||||
expect(scheduleFixedHostLead.teamMember).toBe("[email protected]");
|
||||
|
||||
// show normal slots, example@example + one RR host needs to be available
|
||||
expect(scheduleFixedHostLead).toHaveTimeSlots(
|
||||
[
|
||||
@@ -355,12 +348,10 @@ describe("getSchedule", () => {
|
||||
endTime: `${plus2DateString}T18:29:59.999Z`,
|
||||
timeZone: Timezones["+5:30"],
|
||||
isTeamEvent: true,
|
||||
bookerEmail: "test1@test.com",
|
||||
teamMemberEmail: "example1@example.com",
|
||||
},
|
||||
});
|
||||
|
||||
expect(scheduleRRHostLead.teamMember).toBe("[email protected]");
|
||||
|
||||
// slots where example@example (fixed host) + [email protected] are available together
|
||||
expect(scheduleRRHostLead).toHaveTimeSlots(
|
||||
[`07:30:00.000Z`, `08:30:00.000Z`, `09:30:00.000Z`, `10:30:00.000Z`, `11:30:00.000Z`],
|
||||
|
||||
Reference in new issue
Block a user