move weather-test to e2e

This commit is contained in:
Karsten Hassel
2021-10-16 00:05:12 +02:00
parent e9650285bd
commit 0ec80a7791
17 changed files with 299 additions and 390 deletions

View File

@@ -3,7 +3,7 @@
* By rejas https://github.com/rejas
* MIT Licensed.
*/
let config = require(process.cwd() + "/tests/configs/default.js").configFactory({
let config = {
modules: [
{
module: "compliments",
@@ -12,7 +12,7 @@ let config = require(process.cwd() + "/tests/configs/default.js").configFactory(
compliments: {
snow: ["snow"]
},
updateInterval: 4000
updateInterval: 3000
}
},
{
@@ -20,12 +20,11 @@ let config = require(process.cwd() + "/tests/configs/default.js").configFactory(
position: "bottom_bar",
config: {
location: "Munich",
apiKey: "fake key",
initialLoadDelay: 3000
mockData: '"#####WEATHERDATA#####"'
}
}
]
});
};
/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== "undefined") {

View File

@@ -3,7 +3,7 @@
* By fewieden https://github.com/fewieden
* MIT Licensed.
*/
let config = require(process.cwd() + "/tests/configs/default.js").configFactory({
let config = {
timeFormat: 12,
modules: [
@@ -12,12 +12,11 @@ let config = require(process.cwd() + "/tests/configs/default.js").configFactory(
position: "bottom_bar",
config: {
location: "Munich",
apiKey: "fake key",
initialLoadDelay: 3000
mockData: '"#####WEATHERDATA#####"'
}
}
]
});
};
/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== "undefined") {

View File

@@ -3,15 +3,14 @@
* By fewieden https://github.com/fewieden
* MIT Licensed.
*/
let config = require(process.cwd() + "/tests/configs/default.js").configFactory({
let config = {
modules: [
{
module: "weather",
position: "bottom_bar",
config: {
location: "Munich",
apiKey: "fake key",
initialLoadDelay: 3000,
mockData: '"#####WEATHERDATA#####"',
useBeaufort: false,
showWindDirectionAsArrow: true,
showSun: false,
@@ -21,7 +20,7 @@ let config = require(process.cwd() + "/tests/configs/default.js").configFactory(
}
}
]
});
};
/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== "undefined") {

View File

@@ -3,7 +3,7 @@
* By fewieden https://github.com/fewieden
* MIT Licensed.
*/
let config = require(process.cwd() + "/tests/configs/default.js").configFactory({
let config = {
units: "imperial",
modules: [
@@ -12,14 +12,13 @@ let config = require(process.cwd() + "/tests/configs/default.js").configFactory(
position: "bottom_bar",
config: {
location: "Munich",
apiKey: "fake key",
initialLoadDelay: 3000,
mockData: '"#####WEATHERDATA#####"',
decimalSymbol: ",",
showHumidity: true
}
}
]
});
};
/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== "undefined") {

View File

@@ -3,7 +3,7 @@
* By fewieden https://github.com/fewieden
* MIT Licensed.
*/
let config = require(process.cwd() + "/tests/configs/default.js").configFactory({
let config = {
timeFormat: 12,
modules: [
@@ -13,13 +13,12 @@ let config = require(process.cwd() + "/tests/configs/default.js").configFactory(
config: {
type: "forecast",
location: "Munich",
apiKey: "fake key",
weatherEndpoint: "/forecast/daily",
initialLoadDelay: 3000
mockData: '"#####WEATHERDATA#####"',
weatherEndpoint: "/forecast/daily"
}
}
]
});
};
/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== "undefined") {

View File

@@ -3,7 +3,7 @@
* By fewieden https://github.com/fewieden
* MIT Licensed.
*/
let config = require(process.cwd() + "/tests/configs/default.js").configFactory({
let config = {
timeFormat: 12,
modules: [
@@ -13,16 +13,15 @@ let config = require(process.cwd() + "/tests/configs/default.js").configFactory(
config: {
type: "forecast",
location: "Munich",
apiKey: "fake key",
mockData: '"#####WEATHERDATA#####"',
weatherEndpoint: "/forecast/daily",
initialLoadDelay: 3000,
showPrecipitationAmount: true,
colored: true,
tableClass: "myTableClass"
}
}
]
});
};
/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== "undefined") {

View File

@@ -3,7 +3,7 @@
* By rejas
* MIT Licensed.
*/
let config = require(process.cwd() + "/tests/configs/default.js").configFactory({
let config = {
units: "imperial",
modules: [
@@ -13,14 +13,13 @@ let config = require(process.cwd() + "/tests/configs/default.js").configFactory(
config: {
type: "forecast",
location: "Munich",
apiKey: "fake key",
mockData: '"#####WEATHERDATA#####"',
weatherEndpoint: "/forecast/daily",
initialLoadDelay: 3000,
decimalSymbol: "_"
}
}
]
});
};
/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== "undefined") {