Veeck
2d3940a4ff
Use metric units internally in all weatherproviders ( #2849 )
...
So finally I think this refactorin is ready to be reviewed :-)
DONE:
- [x] Removed all conversion functions for wind and temperature from
specific weatherproviders
- [x] Use internally only metric units: celsius for temperature, meters
per seconds for wind
- [x] Convert temp and wind into the configured units when displaying
data on the UI
- [x] look how beaufort calculation uses metrics, added knots as new
windunit
- [x] add more e2e tests
Checked providers:
- [x] Darksky
- [x] EnvCanada
- [x] OpenWeatherMap
- [x] SMHI provider
- [x] UK Met Office
- [x] UK Met Office DataHub
- [x] WeatherBit
- [x] WeatherFlow
- [x] WeatherGov
TODO in different tickets:
- check weatherproviders for usage of weatherEndpoint (as seen in
https://github.com/MichMich/MagicMirror-Documentation/issues/131 ) -> see
#2926
- cleanup precipations -> #2953
Co-authored-by: veeck <michael@veeck.de>
2022-10-24 19:41:34 +02:00
Karsten Hassel
ad4dbd786a
added new electron tests supporting date mocking ( #2947 )
...
first PR for #2942
- added new electron tests for calendar which test new css classes from
https://github.com/MichMich/MagicMirror/pull/2939
- moved some compliments tests from `e2e` to `electron` because of date
mocking
- removed mock stuff from compliments module
2022-10-17 07:20:23 +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
Veeck
ce4906d13b
Add test in compliments module for remotFile option ( #2932 )
...
nothing fancy here, just a simple test after @khassel's changes to the
test setup :-)
Co-authored-by: veeck <michael@veeck.de>
2022-10-04 14:26:31 +02: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
0c1abad9df
fix calendar_test_recurring.ics and uncomment recurring tests
2022-09-21 21:01:43 +02:00
Kristjan SCHMIDT
a5668b1b99
Magic Mirror -> MagicMirror²
...
Consistent spelling
2022-01-26 23:09:26 +01:00
Karsten Hassel
c392b5a661
Merge branch 'develop' into remove-old-weather-modules
...
# Conflicts:
# modules/default/currentweather/currentweather.js
2022-01-14 22:07:21 +01:00
Karsten Hassel
8cb6015930
refactor tests
2022-01-10 23:27:53 +01:00
Karsten Hassel
eb32ec89b4
remove old weather modules
2022-01-08 23:08:41 +01:00
Karsten Hassel
cd1fe4e182
weather test for new absolute property
2022-01-07 21:38:56 +01:00
rejas
f54c06fb94
Add test for old items
2021-12-20 13:35:50 +01:00
Karsten Hassel
4a7f498683
replace spectron with playwright, rewrite electron tests
2021-11-27 23:00:02 +01:00
Karsten Hassel
0ec80a7791
move weather-test to e2e
2021-10-16 00:05:12 +02:00
Karsten Hassel
1d12e57606
move calendar tests from category electron
to e2e
2021-10-04 23:04:28 +02:00
Karsten Hassel
b3bddb2c99
fix without_modules.js
2021-09-29 22:01:35 +02:00
Karsten Hassel
997aec8cc2
remove default values from test configs
2021-09-29 21:12:03 +02:00
Karsten Hassel
f750436b64
update module clock_es
2021-09-26 22:09:41 +02:00
Karsten Hassel
a4a8504558
update module clock
2021-09-26 22:02:29 +02:00
Karsten Hassel
385e5aabaa
prettier
2021-09-26 00:29:03 +02:00
Karsten Hassel
d831315e20
update module newsfeed
2021-09-26 00:18:22 +02:00
Karsten Hassel
e0906f3462
update module helloworld
2021-09-25 23:52:38 +02:00
Karsten Hassel
0183d7a080
update modules alert and compliments
2021-09-25 23:37:37 +02:00
Karsten Hassel
89e803ee42
update without_modules.js and env_spec.js
2021-09-25 22:12:53 +02:00
Karsten Hassel
c0ce52abe3
change getDocument, delay needed, now 2 tests moved
2021-09-25 00:01:41 +02:00
karsten13
b4350278a0
first tests
2021-09-21 23:48:29 +02:00
rejas
c41fff8f5c
Add test for showTime parameter
2021-08-29 20:00:42 +02:00
Karsten Hassel
e75e4e2284
use process.cwd() for correct path
2021-07-14 00:12:59 +02:00
Karsten Hassel
9aa0af4f9c
factory again
2021-07-05 22:07:33 +02:00
karsten13
209e049893
run prettier
2021-07-05 19:51:18 +02:00
Karsten Hassel
bbb3accf0c
use factory
2021-07-05 19:45:58 +02:00
Karsten Hassel
179989aa42
add missing comments
2021-07-05 19:21:39 +02:00
Karsten Hassel
2881d19d43
remove env.js
2021-07-05 18:27:14 +02:00
Karsten Hassel
7cfc3458ec
fix tests
2021-07-05 18:08:56 +02:00
karsten13
659e1da79d
run prettier
2021-07-05 00:40:01 +02:00
Karsten Hassel
a7ae79493d
refactor test config
2021-07-05 00:35:28 +02:00
karsten13
f945d50c0d
run prettier
2021-07-04 19:21:17 +02:00
Karsten Hassel
e9fabd59ed
contextIsolation: false
2021-07-04 18:30:43 +02:00
Karsten Hassel
ad13de3588
update electron to v13
2021-07-04 17:46:22 +02:00
rejas
e9de961a23
Cleanup prohibited words filter code and test data
2021-05-19 11:12:56 +02:00
rejas
87d543eb3a
Finish test case
2021-05-02 15:07:02 +02:00
rejas
40c1521591
Add test data
2021-05-02 14:55:45 +02:00
rejas
fb8bd657de
Move weatherforecast mock data in better suited directory
2021-04-27 13:14:07 +02:00
rejas
d736dd92be
Use es6 notation in tests
2021-04-18 14:51:28 +02:00
rejas
dd366f35a8
Use es6 notation in test configs
2021-04-17 16:29:38 +02:00
rejas
bda8f26511
Use es6 notation in compliments module and cleanup jsdoc
2021-04-17 16:29:38 +02:00
rejas
ef2ff50089
Use es6 notation in clock module
2021-04-17 16:29:38 +02:00
rejas
0b3964c827
Use es6 notation in helloworld tests
2021-04-17 16:29:38 +02:00
veeck
b02bce2510
Merge branch 'develop' into issue_2530
2021-04-12 19:11:24 +02:00
rejas
db65ff12d7
Update CHANGELOG
2021-04-11 22:49:26 +02:00