mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-27 00:16:44 +00:00
snapshot e2e
This commit is contained in:
@@ -25,7 +25,7 @@ describe("Alert module", function () {
|
||||
});
|
||||
|
||||
describe("Default configuration", function () {
|
||||
before(function () {
|
||||
beforeAll(function () {
|
||||
// Set config sample for use in test
|
||||
process.env.MM_CONFIG_FILE = "tests/configs/modules/alert/default.js";
|
||||
});
|
||||
|
@@ -27,7 +27,7 @@ describe("Calendar module", function () {
|
||||
});
|
||||
|
||||
describe("Default configuration", function () {
|
||||
before(function () {
|
||||
beforeAll(function () {
|
||||
// Set config sample for use in test
|
||||
process.env.MM_CONFIG_FILE = "tests/configs/modules/calendar/default.js";
|
||||
});
|
||||
@@ -46,7 +46,7 @@ describe("Calendar module", function () {
|
||||
});
|
||||
|
||||
describe("Custom configuration", function () {
|
||||
before(function () {
|
||||
beforeAll(function () {
|
||||
// Set config sample for use in test
|
||||
process.env.MM_CONFIG_FILE = "tests/configs/modules/calendar/custom.js";
|
||||
});
|
||||
@@ -77,7 +77,7 @@ describe("Calendar module", function () {
|
||||
});
|
||||
|
||||
describe("Recurring event", function () {
|
||||
before(function () {
|
||||
beforeAll(function () {
|
||||
// Set config sample for use in test
|
||||
process.env.MM_CONFIG_FILE = "tests/configs/modules/calendar/recurring.js";
|
||||
});
|
||||
@@ -90,13 +90,13 @@ describe("Calendar module", function () {
|
||||
});
|
||||
|
||||
describe("Changed port", function () {
|
||||
before(function () {
|
||||
beforeAll(function () {
|
||||
serverBasicAuth.listen(8010);
|
||||
// Set config sample for use in test
|
||||
process.env.MM_CONFIG_FILE = "tests/configs/modules/calendar/changed-port.js";
|
||||
});
|
||||
|
||||
after(function (done) {
|
||||
afterAll(function (done) {
|
||||
serverBasicAuth.close(done());
|
||||
});
|
||||
|
||||
@@ -106,7 +106,7 @@ describe("Calendar module", function () {
|
||||
});
|
||||
|
||||
describe("Basic auth", function () {
|
||||
before(function () {
|
||||
beforeAll(function () {
|
||||
// Set config sample for use in test
|
||||
process.env.MM_CONFIG_FILE = "tests/configs/modules/calendar/basic-auth.js";
|
||||
});
|
||||
@@ -117,7 +117,7 @@ describe("Calendar module", function () {
|
||||
});
|
||||
|
||||
describe("Basic auth by default", function () {
|
||||
before(function () {
|
||||
beforeAll(function () {
|
||||
// Set config sample for use in test
|
||||
process.env.MM_CONFIG_FILE = "tests/configs/modules/calendar/auth-default.js";
|
||||
});
|
||||
@@ -128,7 +128,7 @@ describe("Calendar module", function () {
|
||||
});
|
||||
|
||||
describe("Basic auth backward compatibility configuration: DEPRECATED", function () {
|
||||
before(function () {
|
||||
beforeAll(function () {
|
||||
// Set config sample for use in test
|
||||
process.env.MM_CONFIG_FILE = "tests/configs/modules/calendar/old-basic-auth.js";
|
||||
});
|
||||
@@ -139,13 +139,13 @@ describe("Calendar module", function () {
|
||||
});
|
||||
|
||||
describe("Fail Basic auth", function () {
|
||||
before(function () {
|
||||
beforeAll(function () {
|
||||
serverBasicAuth.listen(8020);
|
||||
// Set config sample for use in test
|
||||
process.env.MM_CONFIG_FILE = "tests/configs/modules/calendar/fail-basic-auth.js";
|
||||
});
|
||||
|
||||
after(function (done) {
|
||||
afterAll(function (done) {
|
||||
serverBasicAuth.close(done());
|
||||
});
|
||||
|
||||
|
@@ -25,7 +25,7 @@ describe("Clock set to spanish language module", function () {
|
||||
});
|
||||
|
||||
describe("with default 24hr clock config", function () {
|
||||
before(function () {
|
||||
beforeAll(function () {
|
||||
// Set config sample for use in test
|
||||
process.env.MM_CONFIG_FILE = "tests/configs/modules/clock/es/clock_24hr.js";
|
||||
});
|
||||
@@ -44,7 +44,7 @@ describe("Clock set to spanish language module", function () {
|
||||
});
|
||||
|
||||
describe("with default 12hr clock config", function () {
|
||||
before(function () {
|
||||
beforeAll(function () {
|
||||
// Set config sample for use in test
|
||||
process.env.MM_CONFIG_FILE = "tests/configs/modules/clock/es/clock_12hr.js";
|
||||
});
|
||||
@@ -63,7 +63,7 @@ describe("Clock set to spanish language module", function () {
|
||||
});
|
||||
|
||||
describe("with showPeriodUpper config enabled", function () {
|
||||
before(function () {
|
||||
beforeAll(function () {
|
||||
// Set config sample for use in test
|
||||
process.env.MM_CONFIG_FILE = "tests/configs/modules/clock/es/clock_showPeriodUpper.js";
|
||||
});
|
||||
@@ -76,7 +76,7 @@ describe("Clock set to spanish language module", function () {
|
||||
});
|
||||
|
||||
describe("with showWeek config enabled", function () {
|
||||
before(function () {
|
||||
beforeAll(function () {
|
||||
// Set config sample for use in test
|
||||
process.env.MM_CONFIG_FILE = "tests/configs/modules/clock/es/clock_showWeek.js";
|
||||
});
|
||||
|
@@ -27,7 +27,7 @@ describe("Clock module", function () {
|
||||
});
|
||||
|
||||
describe("with default 24hr clock config", function () {
|
||||
before(function () {
|
||||
beforeAll(function () {
|
||||
// Set config sample for use in test
|
||||
process.env.MM_CONFIG_FILE = "tests/configs/modules/clock/clock_24hr.js";
|
||||
});
|
||||
@@ -46,7 +46,7 @@ describe("Clock module", function () {
|
||||
});
|
||||
|
||||
describe("with default 12hr clock config", function () {
|
||||
before(function () {
|
||||
beforeAll(function () {
|
||||
// Set config sample for use in test
|
||||
process.env.MM_CONFIG_FILE = "tests/configs/modules/clock/clock_12hr.js";
|
||||
});
|
||||
@@ -65,7 +65,7 @@ describe("Clock module", function () {
|
||||
});
|
||||
|
||||
describe("with showPeriodUpper config enabled", function () {
|
||||
before(function () {
|
||||
beforeAll(function () {
|
||||
// Set config sample for use in test
|
||||
process.env.MM_CONFIG_FILE = "tests/configs/modules/clock/clock_showPeriodUpper.js";
|
||||
});
|
||||
@@ -78,7 +78,7 @@ describe("Clock module", function () {
|
||||
});
|
||||
|
||||
describe("with displaySeconds config disabled", function () {
|
||||
before(function () {
|
||||
beforeAll(function () {
|
||||
// Set config sample for use in test
|
||||
process.env.MM_CONFIG_FILE = "tests/configs/modules/clock/clock_displaySeconds_false.js";
|
||||
});
|
||||
@@ -91,7 +91,7 @@ describe("Clock module", function () {
|
||||
});
|
||||
|
||||
describe("with showWeek config enabled", function () {
|
||||
before(function () {
|
||||
beforeAll(function () {
|
||||
// Set config sample for use in test
|
||||
process.env.MM_CONFIG_FILE = "tests/configs/modules/clock/clock_showWeek.js";
|
||||
});
|
||||
@@ -111,7 +111,7 @@ describe("Clock module", function () {
|
||||
});
|
||||
|
||||
describe("with analog clock face enabled", function () {
|
||||
before(function () {
|
||||
beforeAll(function () {
|
||||
// Set config sample for use in test
|
||||
process.env.MM_CONFIG_FILE = "tests/configs/modules/clock/clock_analog.js";
|
||||
});
|
||||
|
@@ -26,7 +26,7 @@ describe("Compliments module", function () {
|
||||
});
|
||||
|
||||
describe("parts of days", function () {
|
||||
before(function () {
|
||||
beforeAll(function () {
|
||||
// Set config sample for use in test
|
||||
process.env.MM_CONFIG_FILE = "tests/configs/modules/compliments/compliments_parts_day.js";
|
||||
});
|
||||
@@ -67,7 +67,7 @@ describe("Compliments module", function () {
|
||||
|
||||
describe("Feature anytime in compliments module", function () {
|
||||
describe("Set anytime and empty compliments for morning, evening and afternoon ", function () {
|
||||
before(function () {
|
||||
beforeAll(function () {
|
||||
// Set config sample for use in test
|
||||
process.env.MM_CONFIG_FILE = "tests/configs/modules/compliments/compliments_anytime.js";
|
||||
});
|
||||
@@ -81,7 +81,7 @@ describe("Compliments module", function () {
|
||||
});
|
||||
|
||||
describe("Only anytime present in configuration compliments", function () {
|
||||
before(function () {
|
||||
beforeAll(function () {
|
||||
// Set config sample for use in test
|
||||
process.env.MM_CONFIG_FILE = "tests/configs/modules/compliments/compliments_only_anytime.js";
|
||||
});
|
||||
@@ -97,7 +97,7 @@ describe("Compliments module", function () {
|
||||
|
||||
describe("Feature date in compliments module", function () {
|
||||
describe("Set date and empty compliments for anytime, morning, evening and afternoon", function () {
|
||||
before(function () {
|
||||
beforeAll(function () {
|
||||
// Set config sample for use in test
|
||||
process.env.MM_CONFIG_FILE = "tests/configs/modules/compliments/compliments_date.js";
|
||||
});
|
||||
|
@@ -25,7 +25,7 @@ describe("Test helloworld module", function () {
|
||||
});
|
||||
|
||||
describe("helloworld set config text", function () {
|
||||
before(function () {
|
||||
beforeAll(function () {
|
||||
// Set config sample for use in test
|
||||
process.env.MM_CONFIG_FILE = "tests/configs/modules/helloworld/helloworld.js";
|
||||
});
|
||||
@@ -37,7 +37,7 @@ describe("Test helloworld module", function () {
|
||||
});
|
||||
|
||||
describe("helloworld default config text", function () {
|
||||
before(function () {
|
||||
beforeAll(function () {
|
||||
// Set config sample for use in test
|
||||
process.env.MM_CONFIG_FILE = "tests/configs/modules/helloworld/helloworld_default.js";
|
||||
});
|
||||
|
@@ -26,7 +26,7 @@ describe("Newsfeed module", function () {
|
||||
});
|
||||
|
||||
describe("Default configuration", function () {
|
||||
before(function () {
|
||||
beforeAll(function () {
|
||||
process.env.MM_CONFIG_FILE = "tests/configs/modules/newsfeed/default.js";
|
||||
});
|
||||
|
||||
@@ -46,7 +46,7 @@ describe("Newsfeed module", function () {
|
||||
});
|
||||
|
||||
describe("Custom configuration", function () {
|
||||
before(function () {
|
||||
beforeAll(function () {
|
||||
process.env.MM_CONFIG_FILE = "tests/configs/modules/newsfeed/prohibited_words.js";
|
||||
});
|
||||
|
||||
@@ -62,7 +62,7 @@ describe("Newsfeed module", function () {
|
||||
});
|
||||
|
||||
describe("Invalid configuration", function () {
|
||||
before(function () {
|
||||
beforeAll(function () {
|
||||
process.env.MM_CONFIG_FILE = "tests/configs/modules/newsfeed/incorrect_url.js";
|
||||
});
|
||||
|
||||
|
@@ -42,12 +42,12 @@ describe("Weather module", function () {
|
||||
describe("Current weather", function () {
|
||||
let template;
|
||||
|
||||
before(function () {
|
||||
beforeAll(function () {
|
||||
template = fs.readFileSync(path.join(__dirname, "..", "..", "..", "modules", "default", "weather", "current.njk"), "utf8");
|
||||
});
|
||||
|
||||
describe("Default configuration", function () {
|
||||
before(function () {
|
||||
beforeAll(function () {
|
||||
process.env.MM_CONFIG_FILE = "tests/configs/modules/weather/currentweather_default.js";
|
||||
});
|
||||
|
||||
@@ -94,7 +94,7 @@ describe("Weather module", function () {
|
||||
});
|
||||
|
||||
describe("Compliments Integration", function () {
|
||||
before(function () {
|
||||
beforeAll(function () {
|
||||
process.env.MM_CONFIG_FILE = "tests/configs/modules/weather/currentweather_compliments.js";
|
||||
});
|
||||
|
||||
@@ -107,7 +107,7 @@ describe("Weather module", function () {
|
||||
});
|
||||
|
||||
describe("Configuration Options", function () {
|
||||
before(function () {
|
||||
beforeAll(function () {
|
||||
process.env.MM_CONFIG_FILE = "tests/configs/modules/weather/currentweather_options.js";
|
||||
});
|
||||
|
||||
@@ -144,7 +144,7 @@ describe("Weather module", function () {
|
||||
});
|
||||
|
||||
describe("Current weather units", function () {
|
||||
before(function () {
|
||||
beforeAll(function () {
|
||||
process.env.MM_CONFIG_FILE = "tests/configs/modules/weather/currentweather_units.js";
|
||||
});
|
||||
|
||||
@@ -185,12 +185,12 @@ describe("Weather module", function () {
|
||||
describe("Weather Forecast", function () {
|
||||
let template;
|
||||
|
||||
before(function () {
|
||||
beforeAll(function () {
|
||||
template = fs.readFileSync(path.join(__dirname, "..", "..", "..", "modules", "default", "weather", "forecast.njk"), "utf8");
|
||||
});
|
||||
|
||||
describe("Default configuration", function () {
|
||||
before(function () {
|
||||
beforeAll(function () {
|
||||
process.env.MM_CONFIG_FILE = "tests/configs/modules/weather/forecastweather_default.js";
|
||||
});
|
||||
|
||||
@@ -254,7 +254,7 @@ describe("Weather module", function () {
|
||||
});
|
||||
|
||||
describe("Configuration Options", function () {
|
||||
before(function () {
|
||||
beforeAll(function () {
|
||||
process.env.MM_CONFIG_FILE = "tests/configs/modules/weather/forecastweather_options.js";
|
||||
});
|
||||
|
||||
@@ -276,7 +276,7 @@ describe("Weather module", function () {
|
||||
});
|
||||
|
||||
describe("Forecast weather units", function () {
|
||||
before(function () {
|
||||
beforeAll(function () {
|
||||
process.env.MM_CONFIG_FILE = "tests/configs/modules/weather/forecastweather_units.js";
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user