You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test("Reschedule: should reschedule as per routedTeamMemberIds(instead of same host) even if rescheduleWithSameRoundRobinHost is true but it is a rerouting scenario",async()=>{
2363
+
vi.setSystemTime("2024-05-21T00:00:13Z");
2364
+
2365
+
constplus1DateString="2024-05-22";
2366
+
constplus2DateString="2024-05-23";
2367
+
2368
+
// An event with common schedule
2369
+
awaitcreateBookingScenario({
2370
+
eventTypes: [
2371
+
{
2372
+
id: 1,
2373
+
slotInterval: 60,
2374
+
length: 60,
2375
+
rescheduleWithSameRoundRobinHost: true,
2376
+
hosts: [
2377
+
{
2378
+
userId: 101,
2379
+
isFixed: false,
2380
+
},
2381
+
{
2382
+
userId: 102,
2383
+
isFixed: false,
2384
+
},
2385
+
],
2386
+
schedulingType: "ROUND_ROBIN",
2387
+
},
2388
+
],
2389
+
users: [
2390
+
{
2391
+
...TestData.users.example,
2392
+
email: "example@example.com",
2393
+
id: 101,
2394
+
schedules: [TestData.schedules.IstEveningShift],
2395
+
defaultScheduleId: 1,
2396
+
},
2397
+
{
2398
+
...TestData.users.example,
2399
+
email: "example1@example.com",
2400
+
id: 102,
2401
+
schedules: [TestData.schedules.IstMorningShift],
2402
+
defaultScheduleId: 2,
2403
+
},
2404
+
],
2405
+
bookings: [
2406
+
{
2407
+
uid: "BOOKING_TO_RESCHEDULE_UID",
2408
+
userId: 101,
2409
+
attendees: [
2410
+
{
2411
+
email: "IntegrationTestUser102@example.com",
2412
+
},
2413
+
],
2414
+
eventTypeId: 1,
2415
+
status: "ACCEPTED",
2416
+
startTime: `${plus2DateString}T04:00:00.000Z`,
2417
+
endTime: `${plus2DateString}T04:15:00.000Z`,
2418
+
},
2419
+
],
2420
+
});
2421
+
2422
+
constschedule=awaitgetSchedule({
2423
+
input: {
2424
+
eventTypeId: 1,
2425
+
eventTypeSlug: "",
2426
+
startTime: `${plus1DateString}T18:30:00.000Z`,
2427
+
endTime: `${plus2DateString}T18:29:59.999Z`,
2428
+
timeZone: Timezones["+5:30"],
2429
+
isTeamEvent: true,
2430
+
rescheduleUid: "BOOKING_TO_RESCHEDULE_UID",
2431
+
routedTeamMemberIds: [102],
2432
+
},
2433
+
});
2434
+
2435
+
// expect only slots of IstEveningShift as this is the slots for the original host of the booking
Copy file name to clipboardexpand all lines: apps/web/test/utils/bookingScenario/bookingScenario.ts
+3
Original file line number
Diff line number
Diff line change
@@ -1283,6 +1283,9 @@ export function getOrganizer({
1283
1283
1284
1284
exportfunctiongetScenarioData(
1285
1285
{
1286
+
/**
1287
+
* organizer has no special meaning. It is a regular user. It is supposed to be deprecated along with `usersApartFromOrganizer` and we should introduce a new `users` field instead
0 commit comments