update modules alert and compliments

This commit is contained in:
Karsten Hassel
2021-09-25 23:37:37 +02:00
parent 89e803ee42
commit 0183d7a080
11 changed files with 141 additions and 152 deletions

View File

@@ -0,0 +1,18 @@
const helpers = require("../global-setup");
let app = null;
describe("Alert module", function () {
beforeAll(function (done) {
app = helpers.startApplication("tests/configs/modules/alert/default.js");
helpers.getDocument(done, 1000);
});
afterAll(function () {
helpers.stopApplication(app);
});
it("should show the welcome message", function () {
const elem = document.querySelector(".ns-box .ns-box-inner .light.bright.small");
expect(elem).not.toBe(null);
expect(elem.textContent).toContain("Welcome, start was successful!");
});
});