diff --git a/__test__/components/EventModifications.test.tsx b/__test__/components/EventModifications.test.tsx index 69d13ac..2ea714f 100644 --- a/__test__/components/EventModifications.test.tsx +++ b/__test__/components/EventModifications.test.tsx @@ -408,6 +408,11 @@ describe("CalendarApp integration", () => { }); }); + // Wait for the 0.1s delay in handleStartTimeChangeWithClose to complete + await act(async () => { + await new Promise((resolve) => setTimeout(resolve, 150)); + }); + const saveButton = screen.getByRole("button", { name: /save/i }); await act(async () => { saveButton.click();