File tree 3 files changed +16
-12
lines changed
3 files changed +16
-12
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ _This release is scheduled to be released on 2024-01-01._
45
45
- Fix updatanotification (update_helper.js): catch error if reponse is not an JSON format (check PM2)
46
46
- Fix missing typeof in calendar module
47
47
- Fix style issues after prettier update
48
+ - Fix calendar test (#3291 ) by moving "Exdate check" from e2e to electron to run on a Thursday
48
49
49
50
## [ 2.25.0] - 2023-10-01
50
51
Original file line number Diff line number Diff line change @@ -87,17 +87,6 @@ describe("Calendar module", () => {
87
87
} ) ;
88
88
} ) ;
89
89
90
- describe ( "exdate check" , ( ) => {
91
- beforeAll ( async ( ) => {
92
- await helpers . startApplication ( "tests/configs/modules/calendar/exdate.js" ) ;
93
- await helpers . getDocument ( ) ;
94
- } ) ;
95
-
96
- it ( "should show the recurring event 51 times (excluded once) in a 364-day (inclusive) period" , async ( ) => {
97
- await expect ( testElementLength ( ".calendar .event" , 51 ) ) . resolves . toBe ( true ) ;
98
- } ) ;
99
- } ) ;
100
-
101
90
describe ( "Events from multiple calendars" , ( ) => {
102
91
beforeAll ( async ( ) => {
103
92
await helpers . startApplication ( "tests/configs/modules/calendar/show-duplicates-in-calendar.js" ) ;
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ describe("Calendar module", () => {
7
7
* @returns {boolean } result
8
8
*/
9
9
const doTest = async ( cssClass ) => {
10
- let elem = await helpers . getElement ( `.calendar .module-content .event${ cssClass } ` ) ;
10
+ const elem = await helpers . getElement ( `.calendar .module-content .event${ cssClass } ` ) ;
11
11
await expect ( elem . isVisible ( ) ) . resolves . toBe ( true ) ;
12
12
return true ;
13
13
} ;
@@ -42,4 +42,18 @@ describe("Calendar module", () => {
42
42
await expect ( doTest ( ".dayAfterTomorrow" ) ) . resolves . toBe ( true ) ;
43
43
} ) ;
44
44
} ) ;
45
+
46
+ describe ( "Exdate check" , ( ) => {
47
+ it ( "should show the recurring event 51 times (excluded once) in a 364-day (inclusive) period" , async ( ) => {
48
+ // test must run on a Thursday
49
+ await helpers . startApplication ( "tests/configs/modules/calendar/exdate.js" , "14 Dec 2023 12:30:00 GMT" ) ;
50
+ expect ( global . page ) . not . toBeNull ( ) ;
51
+ const loc = await global . page . locator ( ".calendar .event" ) ;
52
+ const elem = loc . first ( ) ;
53
+ await elem . waitFor ( ) ;
54
+ expect ( elem ) . not . toBeNull ( ) ;
55
+ const cnt = await loc . count ( ) ;
56
+ expect ( cnt ) . toBe ( 51 ) ;
57
+ } ) ;
58
+ } ) ;
45
59
} ) ;
You can’t perform that action at this time.
0 commit comments