[#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
+13 -11
View File
@@ -300,13 +300,13 @@ describe("Event Preview Display", () => {
screen.getByText("eventPreview.attendingQuestion")
).toBeInTheDocument();
expect(
screen.getByRole("button", { name: "eventPreview.accept" })
screen.getByRole("button", { name: "eventPreview.ACCEPTED" })
).toBeInTheDocument();
expect(
screen.getByRole("button", { name: "eventPreview.maybe" })
screen.getByRole("button", { name: "eventPreview.TENTATIVE" })
).toBeInTheDocument();
expect(
screen.getByRole("button", { name: "eventPreview.decline" })
screen.getByRole("button", { name: "eventPreview.DECLINED" })
).toBeInTheDocument();
});
it("doesnt renders RSVP buttons when user isnt an attendee", () => {
@@ -354,13 +354,13 @@ describe("Event Preview Display", () => {
screen.queryByText("eventPreview.attendingQuestion")
).not.toBeInTheDocument();
expect(
screen.queryByRole("button", { name: "eventPreview.accept" })
screen.queryByRole("button", { name: "eventPreview.ACCEPTED" })
).not.toBeInTheDocument();
expect(
screen.queryByRole("button", { name: "eventPreview.maybe" })
screen.queryByRole("button", { name: "eventPreview.TENTATIVE" })
).not.toBeInTheDocument();
expect(
screen.queryByRole("button", { name: "eventPreview.decline" })
screen.queryByRole("button", { name: "eventPreview.DECLINED" })
).not.toBeInTheDocument();
});
@@ -414,7 +414,7 @@ describe("Event Preview Display", () => {
);
fireEvent.click(
screen.getByRole("button", { name: "eventPreview.accept" })
screen.getByRole("button", { name: "eventPreview.ACCEPTED" })
);
await waitFor(() => {
@@ -474,7 +474,9 @@ describe("Event Preview Display", () => {
rsvpState
);
fireEvent.click(screen.getByRole("button", { name: "eventPreview.maybe" }));
fireEvent.click(
screen.getByRole("button", { name: "eventPreview.TENTATIVE" })
);
await waitFor(() => {
expect(spy).toHaveBeenCalled();
@@ -534,7 +536,7 @@ describe("Event Preview Display", () => {
);
fireEvent.click(
screen.getByRole("button", { name: "eventPreview.decline" })
screen.getByRole("button", { name: "eventPreview.DECLINED" })
);
await waitFor(() => {
@@ -1020,7 +1022,7 @@ describe("Event Preview Display", () => {
).not.toBeInTheDocument();
});
it("displays only maybe count when all attendees tentative", () => {
it("displays only TENTATIVE count when all attendees tentative", () => {
const attendees = [
{
cn: "organizer",
@@ -1262,7 +1264,7 @@ describe("Event Preview Display", () => {
).toBeInTheDocument();
});
it("displays correct counts with multiple yes and maybe", () => {
it("displays correct counts with multiple yes and TENTATIVE", () => {
const attendees = [
{
cn: "Guest 1",