Files
MagicMirror/tests/e2e/modules_empty_spec.js
T

24 lines
782 B
JavaScript
Raw Normal View History

2023-01-01 18:09:08 +01:00
const helpers = require("./helpers/global-setup");
describe("Check configuration without modules", () => {
beforeAll(async () => {
await helpers.startApplication("tests/configs/without_modules.js");
await helpers.getDocument();
});
afterAll(async () => {
await helpers.stopApplication();
});
2023-07-01 21:17:31 +02:00
it("shows the message MagicMirror² title", async () => {
2023-01-01 18:09:08 +01:00
const elem = await helpers.waitForElement("#module_1_helloworld .module-content");
2024-01-01 15:38:08 +01:00
expect(elem).not.toBeNull();
2023-01-01 18:09:08 +01:00
expect(elem.textContent).toContain("MagicMirror²");
});
2023-07-01 21:17:31 +02:00
it("shows the url of michael's website", async () => {
2023-01-01 18:09:08 +01:00
const elem = await helpers.waitForElement("#module_5_helloworld .module-content");
2024-01-01 15:38:08 +01:00
expect(elem).not.toBeNull();
2023-01-01 18:09:08 +01:00
expect(elem.textContent).toContain("www.michaelteeuw.nl");
});
});