added test for calendar recurring event with checks the correct date displayed (related to #2752)

This commit is contained in:
Karsten Hassel 2021-12-26 14:30:38 +01:00
parent 512c392386
commit a954a62762
2 changed files with 8 additions and 0 deletions

View File

@ -11,6 +11,8 @@ _This release is scheduled to be released on 2022-01-01._
### Added
- Added test for calendar recurring event with checks the correct date displayed (related to #2752).
### Updated
- ESLint version supports now ECMAScript 2018

View File

@ -68,6 +68,12 @@ describe("Calendar module", function () {
it("should show the recurring birthday event 6 times", () => {
testElementLength(".calendar .event", 6);
});
it('should contain text "Mar 25th"', () => {
const elem = document.querySelector(".calendar");
expect(elem).not.toBe(null);
expect(elem.textContent).toContain("Mar 25th");
});
});
describe("Changed port", function () {