mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 11:50:00 +00:00
18 lines
537 B
JavaScript
18 lines
537 B
JavaScript
const helpers = require("../helpers/global-setup");
|
|
|
|
describe("Alert module", () => {
|
|
beforeAll(async () => {
|
|
helpers.startApplication("tests/configs/modules/alert/default.js");
|
|
await helpers.getDocument();
|
|
});
|
|
afterAll(async () => {
|
|
await helpers.stopApplication();
|
|
});
|
|
|
|
it("should show the welcome message", async () => {
|
|
const elem = await helpers.waitForElement(".ns-box .ns-box-inner .light.bright.small");
|
|
expect(elem).not.toBe(null);
|
|
expect(elem.textContent).toContain("Welcome, start was successful!");
|
|
});
|
|
});
|