Files
MagicMirror/tests/e2e/modules_empty_spec.js
T

24 lines
726 B
JavaScript
Raw Normal View History

const { expect } = require("playwright/test");
2023-01-01 18:09:08 +01:00
const helpers = require("./helpers/global-setup");
describe("Check configuration without modules", () => {
let page;
2023-01-01 18:09:08 +01:00
beforeAll(async () => {
await helpers.startApplication("tests/configs/without_modules.js");
await helpers.getDocument();
page = helpers.getPage();
2023-01-01 18:09:08 +01:00
});
afterAll(async () => {
await helpers.stopApplication();
});
2023-07-01 21:17:31 +02:00
it("shows the message MagicMirror² title", async () => {
await expect(page.locator("#module_1_helloworld .module-content")).toContainText("MagicMirror²");
2023-01-01 18:09:08 +01:00
});
2024-12-18 08:00:00 +01:00
it("shows the project URL", async () => {
await expect(page.locator("#module_5_helloworld .module-content")).toContainText("https://magicmirror.builders/");
2023-01-01 18:09:08 +01:00
});
});