MagicMirror/tests/e2e/without_modules.js

24 lines
764 B
JavaScript
Raw Normal View History

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