MagicMirror/tests/e2e/modules/newsfeed_spec.js

37 lines
831 B
JavaScript
Raw Normal View History

const helpers = require("../global-setup");
2017-02-20 08:19:36 -03:00
const describe = global.describe;
const it = global.it;
const beforeEach = global.beforeEach;
const afterEach = global.afterEach;
2017-02-20 08:19:36 -03:00
describe("Newsfeed module", function () {
helpers.setupTimeout(this);
var app = null;
beforeEach(function () {
return helpers
.startApplication({
args: ["js/electron.js"]
})
.then(function (startedApp) {
app = startedApp;
});
2017-02-20 08:19:36 -03:00
});
afterEach(function () {
return helpers.stopApplication(app);
2017-02-20 08:19:36 -03:00
});
describe("Default configuration", function () {
before(function () {
2017-02-20 08:19:36 -03:00
process.env.MM_CONFIG_FILE = "tests/configs/modules/newsfeed/default.js";
});
it("show title newsfeed", function () {
return app.client.waitUntilTextExists(".newsfeed .small", "Rodrigo Ramirez Blog", 10000).should.be.fulfilled;
2017-02-20 08:19:36 -03:00
});
});
});