2021-09-25 22:12:53 +02:00
|
|
|
const helpers = require("./global-setup");
|
|
|
|
|
|
|
|
describe("Check configuration without modules", function () {
|
|
|
|
beforeAll(function (done) {
|
2021-09-25 23:45:34 +02:00
|
|
|
helpers.startApplication("tests/configs/without_modules.js");
|
2022-01-13 00:13:29 +01:00
|
|
|
helpers.getDocument(done);
|
2021-09-25 22:12:53 +02:00
|
|
|
});
|
|
|
|
afterAll(function () {
|
2021-09-25 23:45:34 +02:00
|
|
|
helpers.stopApplication();
|
2021-09-25 22:12:53 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
it("Show the message MagicMirror title", function () {
|
2022-01-13 21:12:15 +01:00
|
|
|
helpers.waitForElement("#module_1_helloworld .module-content").then((elem) => {
|
|
|
|
expect(elem).not.toBe(null);
|
2022-01-26 23:09:26 +01:00
|
|
|
expect(elem.textContent).toContain("MagicMirror²");
|
2022-01-13 21:12:15 +01:00
|
|
|
});
|
2021-09-25 22:12:53 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
it("Show the text Michael's website", function () {
|
2022-01-13 21:12:15 +01:00
|
|
|
helpers.waitForElement("#module_5_helloworld .module-content").then((elem) => {
|
|
|
|
expect(elem).not.toBe(null);
|
|
|
|
expect(elem.textContent).toContain("www.michaelteeuw.nl");
|
|
|
|
});
|
2021-09-25 22:12:53 +02:00
|
|
|
});
|
|
|
|
});
|