fixes calendar test by moving it from e2e to electron with fixed date (#3540)

and refactor tests/electron/modules/calendar_spec.js

fixes #3532
This commit is contained in:
Karsten Hassel
2024-09-15 08:36:11 +02:00
committed by GitHub
parent 81351fb4cc
commit 0faefd109a
3 changed files with 24 additions and 61 deletions

View File

@@ -88,17 +88,6 @@ describe("Calendar module", () => {
});
});
describe("Events from multiple calendars", () => {
beforeAll(async () => {
await helpers.startApplication("tests/configs/modules/calendar/show-duplicates-in-calendar.js");
await helpers.getDocument();
});
it("should show multiple events with the same title and start time from different calendars", async () => {
await expect(testElementLength(".calendar .event", 20)).resolves.toBe(true);
});
});
//Will contain everyday an fullDayEvent that starts today and ends tomorrow, and one starting tomorrow and ending the day after tomorrow
describe("FullDayEvent over several days should show how many days are left from the from the starting date on", () => {
beforeAll(async () => {