2022-10-07 19:16:37 +02:00
|
|
|
const helpers = require("./helpers/global-setup");
|
2021-09-25 22:12:53 +02:00
|
|
|
|
2022-09-20 23:43:06 +02:00
|
|
|
describe("Check configuration without modules", () => {
|
2022-10-04 10:15:24 +02:00
|
|
|
beforeAll(async () => {
|
2022-10-29 22:34:17 +02:00
|
|
|
await helpers.startApplication("tests/configs/without_modules.js");
|
2022-10-04 10:15:24 +02:00
|
|
|
await helpers.getDocument();
|
2021-09-25 22:12:53 +02:00
|
|
|
});
|
2022-09-20 23:43:06 +02:00
|
|
|
afterAll(async () => {
|
2022-05-27 19:46:28 +02:00
|
|
|
await helpers.stopApplication();
|
2021-09-25 22:12:53 +02:00
|
|
|
});
|
|
|
|
|
2023-04-09 12:49:50 +02:00
|
|
|
it("shows the message MagicMirror² title", async () => {
|
2022-10-04 10:15:24 +02:00
|
|
|
const elem = await helpers.waitForElement("#module_1_helloworld .module-content");
|
2023-11-20 20:11:41 +01:00
|
|
|
expect(elem).not.toBeNull();
|
2022-10-04 10:15:24 +02:00
|
|
|
expect(elem.textContent).toContain("MagicMirror²");
|
2021-09-25 22:12:53 +02:00
|
|
|
});
|
|
|
|
|
2023-04-09 12:49:50 +02:00
|
|
|
it("shows the url of michael's website", async () => {
|
2022-10-04 10:15:24 +02:00
|
|
|
const elem = await helpers.waitForElement("#module_5_helloworld .module-content");
|
2023-11-20 20:11:41 +01:00
|
|
|
expect(elem).not.toBeNull();
|
2022-10-04 10:15:24 +02:00
|
|
|
expect(elem.textContent).toContain("www.michaelteeuw.nl");
|
2021-09-25 22:12:53 +02:00
|
|
|
});
|
|
|
|
});
|