[#397 bis] added participation management on event from thunderbird (#432)

Co-authored-by: Camille Moussu <cmoussu@linagora.com>
This commit is contained in:
Camille Moussu
2026-01-07 11:45:17 +01:00
committed by GitHub
parent e59d878e6c
commit 9ff75056c7
47 changed files with 550 additions and 366 deletions
@@ -2,7 +2,7 @@ import { screen, fireEvent, waitFor } from "@testing-library/react";
import CalendarPopover from "../../../src/components/Calendar/CalendarModal";
import { renderWithProviders } from "../../utils/Renderwithproviders";
import * as eventThunks from "../../../src/features/Calendars/CalendarSlice";
import { Calendars } from "../../../src/features/Calendars/CalendarTypes";
import { Calendar } from "../../../src/features/Calendars/CalendarTypes";
import { getSecretLink } from "../../../src/features/Calendars/CalendarApi";
jest.mock("../../../src/features/Calendars/CalendarApi", () => ({
@@ -103,7 +103,7 @@ describe("CalendarPopover (editing mode)", () => {
},
};
const existingCalendar: Calendars = {
const existingCalendar: Calendar = {
id: "user1/cal1",
link: "/calendars/user/cal1",
name: "Work Calendar",
@@ -208,7 +208,7 @@ describe("CalendarPopover - Tabs Scenarios", () => {
},
});
const existingCalendar: Calendars = {
const existingCalendar: Calendar = {
id: "user1/cal1",
link: "/calendars/user1/cal1.json",
name: "Work Calendar",
@@ -22,7 +22,7 @@ import * as calAPI from "../../../src/features/Calendars/CalendarApi";
import * as userAPI from "../../../src/features/User/userAPI";
import { configureStore } from "@reduxjs/toolkit";
import { Calendars } from "../../../src/features/Calendars/CalendarTypes";
import { Calendar } from "../../../src/features/Calendars/CalendarTypes";
import { CalendarEvent } from "../../../src/features/Events/EventsTypes";
jest.mock("../../../src/features/Calendars/CalendarApi");
@@ -79,7 +79,7 @@ describe("CalendarSlice", () => {
[calId]: {
id: calId,
events: { e1: { uid: "e1" } },
} as unknown as Calendars,
} as unknown as Calendar,
},
};
const state = reducer(
@@ -97,7 +97,7 @@ describe("CalendarSlice", () => {
[calId]: {
id: calId,
events: { e1: { uid: "e1", title: "Old" } },
} as unknown as Calendars,
} as unknown as Calendar,
},
};
const state = reducer(
@@ -276,7 +276,7 @@ describe("CalendarSlice", () => {
id: "u1/cal1",
name: "Existing Calendar",
events: {},
} as Calendars,
} as Calendar,
};
const store = storeFactory();
@@ -447,7 +447,7 @@ describe("CalendarSlice", () => {
[calId]: {
id: calId,
events: { e1: { uid: "e1" } },
} as unknown as Calendars,
} as unknown as Calendar,
},
};
const state = reducer(
@@ -473,7 +473,7 @@ describe("CalendarSlice", () => {
ownerEmails: ["o@o.com"],
link: "/calendars/t1.json",
description: "desc",
} as Calendars,
} as Calendar,
};
const state = reducer(
initialState,
@@ -533,7 +533,7 @@ describe("CalendarSlice", () => {
["c1"]: {
id: "c1",
events: {},
} as unknown as Calendars,
} as unknown as Calendar,
},
},
getCalendarDetailAsync.fulfilled(payload, "req11", {