buxxi
f25abfd2f8
Make the e2e tests wait for the app to start and close before running next test ( #2952 )
...
When trying to debug why the tests broke for
https://github.com/MichMich/MagicMirror/pull/2946 I found that the tests
does not wait for the app to start and close. So if the startup isn't
blocking that would fail.
So I added a callback for `close()` too and converted them to promises
for the `startApplication()` and `stopApplication()` and updated all the
e2e tests to await both. Will try to refactor all these callbacks to
promises in a later PR.
2022-10-29 22:34:17 +02:00
Veeck
a328ce537f
Cleanup test directory ( #2937 )
...
Moves files around and renames some so that the structure is cleaner and
more consistent
2022-10-07 12:16:37 -05:00
Karsten Hassel
f04d578704
improve tests ( #2923 )
...
use es6 syntax in all tests, split weather tests, remove callbacks
2022-10-04 10:15:24 +02:00
Karsten Hassel
fb96cc3c72
fix e2e tests not failing on errors, disable recurring-event-tests of calendar
2022-09-21 00:28:43 +02:00
Karsten Hassel
0023c64d59
use internal fetch function of node instead external node-fetch
library if node version >= v18
2022-05-27 19:46:28 +02:00
Karsten Hassel
2cfafe7bfe
improve waitForElement
2022-01-13 21:52:47 +01:00
Karsten Hassel
b1a46b365b
increase load delay for modules tests
2021-10-22 22:49:10 +02:00
Karsten Hassel
6595b6a44f
refactor global-setup.js
2021-09-25 23:45:34 +02:00
Karsten Hassel
c0ce52abe3
change getDocument, delay needed, now 2 tests moved
2021-09-25 00:01:41 +02:00
Karsten Hassel
a1c7f20990
fix logger.js, move jsdom in startApplication
2021-09-24 21:30:51 +02:00
Karsten Hassel
0ef6f89d44
fix server.close() issue
2021-09-24 00:30:00 +02:00
Karsten Hassel
54b04962a8
snapshot
2021-09-23 22:52:32 +02:00
Karsten Hassel
974de179e0
refactor tests in 3 categories unit, e2e and electron
2021-09-13 23:07:34 +02:00
Karsten Hassel
e3a5bbf661
use expect where missing
2021-06-14 21:07:38 +02:00
karsten13
1a244726aa
run prettier
2021-06-11 22:24:21 +02:00
Karsten Hassel
65a8cb9ddb
remove unused references
2021-06-11 00:32:54 +02:00
Karsten Hassel
0e14d3d6e8
snapshot e2e
2021-06-09 00:19:43 +02:00
Karsten Hassel
67011c0c32
snapshot e2e
2021-06-08 00:47:40 +02:00
rejas
d736dd92be
Use es6 notation in tests
2021-04-18 14:51:28 +02:00
Karsten Hassel
059b87bbb4
bump electron to v11
2021-01-30 21:58:49 +01:00
rejas
5aa7097a6e
Add test for displaying the header
2020-08-13 21:51:18 +02:00