[#4] fixed test

This commit is contained in:
Camille Moussu
2025-08-22 10:52:37 +02:00
parent 6c58680450
commit 4e31b2666c
@@ -127,9 +127,9 @@ describe("CalendarSelection", () => {
},
};
renderWithProviders(<CalendarApp />, preloadedState);
expect(screen.getByText("personnalCalendars")).toBeInTheDocument();
expect(screen.getByText("delegatedCalendars")).toBeInTheDocument();
expect(screen.getByText("sharedCalendars")).toBeInTheDocument();
expect(screen.getByText("Personnal Calendars")).toBeInTheDocument();
expect(screen.getByText("Delegated Calendars")).toBeInTheDocument();
expect(screen.getByText("Shared Calendars")).toBeInTheDocument();
expect(screen.getByLabelText("Calendar personnal")).toBeInTheDocument();
expect(screen.getByLabelText("Calendar delegated")).toBeInTheDocument();
@@ -184,9 +184,9 @@ describe("CalendarSelection", () => {
},
};
renderWithProviders(<CalendarApp />, preloadedState);
expect(screen.getByText("personnalCalendars")).toBeInTheDocument();
expect(screen.queryByText("delegatedCalendars")).not.toBeInTheDocument();
expect(screen.queryByText("sharedCalendars")).not.toBeInTheDocument();
expect(screen.getByText("Personnal Calendars")).toBeInTheDocument();
expect(screen.queryByText("Delegated Calendars")).not.toBeInTheDocument();
expect(screen.queryByText("Shared Calendars")).not.toBeInTheDocument();
expect(screen.getByLabelText("Calendar personnal")).toBeInTheDocument();
});