MagicMirror/tests/e2e/modules/alert_spec.js

18 lines
543 B
JavaScript
Raw Normal View History

const helpers = require("../helpers/global-setup");
2021-09-25 23:37:37 +02:00
describe("Alert module", () => {
beforeAll(async () => {
await helpers.startApplication("tests/configs/modules/alert/default.js");
await helpers.getDocument();
2021-09-25 23:37:37 +02:00
});
afterAll(async () => {
await helpers.stopApplication();
2021-09-25 23:37:37 +02:00
});
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!");
2021-09-25 23:37:37 +02:00
});
});