2025-11-08 21:59:05 +01:00
|
|
|
const { expect } = require("playwright/test");
|
2023-01-01 18:09:08 +01:00
|
|
|
const helpers = require("./helpers/global-setup");
|
|
|
|
|
|
|
|
|
|
describe("Check configuration without modules", () => {
|
2025-11-08 21:59:05 +01:00
|
|
|
let page;
|
|
|
|
|
|
2023-01-01 18:09:08 +01:00
|
|
|
beforeAll(async () => {
|
|
|
|
|
await helpers.startApplication("tests/configs/without_modules.js");
|
|
|
|
|
await helpers.getDocument();
|
2025-11-08 21:59:05 +01:00
|
|
|
page = helpers.getPage();
|
2023-01-01 18:09:08 +01:00
|
|
|
});
|
2026-01-24 13:15:15 +01:00
|
|
|
|
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 () => {
|
2025-11-08 21:59:05 +01:00
|
|
|
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 () => {
|
2025-11-08 21:59:05 +01:00
|
|
|
await expect(page.locator("#module_5_helloworld .module-content")).toContainText("https://magicmirror.builders/");
|
2023-01-01 18:09:08 +01:00
|
|
|
});
|
|
|
|
|
});
|