MagicMirror/tests/e2e/modules/alert_spec.js

19 lines
548 B
JavaScript
Raw Normal View History

2021-09-25 23:37:37 +02:00
const helpers = require("../global-setup");
describe("Alert module", function () {
beforeAll(function (done) {
2021-09-25 23:45:34 +02:00
helpers.startApplication("tests/configs/modules/alert/default.js");
2022-01-13 21:12:15 +01:00
helpers.getDocument(done);
2021-09-25 23:37:37 +02:00
});
afterAll(async function () {
await helpers.stopApplication();
2021-09-25 23:37:37 +02:00
});
it("should show the welcome message", function () {
2022-01-13 21:12:15 +01:00
helpers.waitForElement(".ns-box .ns-box-inner .light.bright.small").then((elem) => {
expect(elem).not.toBe(null);
expect(elem.textContent).toContain("Welcome, start was successful!");
});
2021-09-25 23:37:37 +02:00
});
});