2021-04-11 20:59:33 +02:00
|
|
|
const helpers = require("../global-setup");
|
|
|
|
|
|
|
|
const describe = global.describe;
|
|
|
|
const it = global.it;
|
|
|
|
const beforeEach = global.beforeEach;
|
|
|
|
const afterEach = global.afterEach;
|
|
|
|
|
|
|
|
describe("Alert module", function () {
|
|
|
|
helpers.setupTimeout(this);
|
|
|
|
|
|
|
|
let app = null;
|
|
|
|
|
|
|
|
beforeEach(function () {
|
|
|
|
return helpers
|
|
|
|
.startApplication({
|
|
|
|
args: ["js/electron.js"]
|
|
|
|
})
|
|
|
|
.then(function (startedApp) {
|
|
|
|
app = startedApp;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
afterEach(function () {
|
|
|
|
return helpers.stopApplication(app);
|
|
|
|
});
|
|
|
|
|
|
|
|
describe("Default configuration", function () {
|
2021-06-08 00:47:40 +02:00
|
|
|
beforeAll(function () {
|
2021-04-11 20:59:33 +02:00
|
|
|
// Set config sample for use in test
|
|
|
|
process.env.MM_CONFIG_FILE = "tests/configs/modules/alert/default.js";
|
|
|
|
});
|
|
|
|
|
|
|
|
it("should show the welcome message", function () {
|
|
|
|
return app.client.waitUntilTextExists(".ns-box .ns-box-inner .light.bright.small", "Welcome, start was successful!", 10000);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|