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
Kristjan SCHMIDT
a5668b1b99
Magic Mirror -> MagicMirror²
...
Consistent spelling
2022-01-26 23:09:26 +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
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
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
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
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
7cfc3458ec
fix tests
2021-07-05 18:08:56 +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
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
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
rejas
e6fea297e5
Add test for decimalSymbol in weatherforecast
2021-04-11 22:25:17 +02:00
rejas
79f5b938f5
Add first test for alert module
2021-04-11 20:59:53 +02:00
oemel09
fdb0c0acb3
Adds test to check that newsfeed description does not show up
2021-04-09 08:05:19 +02:00
oemel09
cb67286bc3
Adds test to validate that description is shown
2021-04-08 17:00:15 +02:00
rejas
639305ecc8
Add test for prohibited words
2021-03-18 16:55:54 +01:00
rejas
a269b5cd93
Show invalid url error on UI, add test case
2021-03-18 16:55:54 +01:00
rejas
bdc4ed4d86
Add specific change-port test and fix the others
2021-02-12 08:45:54 +01:00
veeck
dbea348779
Cleanup port usage in tests
2021-02-11 21:20:34 +01:00
Karsten Hassel
059b87bbb4
bump electron to v11
2021-01-30 21:58:49 +01:00
veeck
3895c18466
Add test case
2021-01-17 14:57:06 +01:00
Johan Alvinger
99aaae491c
Reverted changes to test case for calendar
2020-11-25 23:35:01 +01:00
Johan Alvinger
51a1399bca
Change custom calendar test to not include past events
2020-11-25 22:36:00 +01:00
Johan Alvinger
20a50f8382
Reverted changes in custom.js for testing
2020-11-24 14:57:51 +01:00