2017-02-20 08:19:36 -03:00
|
|
|
const globalSetup = require("../global-setup");
|
|
|
|
const app = globalSetup.app;
|
|
|
|
const chai = require("chai");
|
|
|
|
const expect = chai.expect;
|
|
|
|
|
|
|
|
describe("Newsfeed module", function () {
|
|
|
|
|
|
|
|
this.timeout(20000);
|
|
|
|
|
|
|
|
beforeEach(function (done) {
|
|
|
|
app.start().then(function() { done(); } );
|
|
|
|
});
|
|
|
|
|
|
|
|
afterEach(function (done) {
|
|
|
|
app.stop().then(function() { done(); });
|
|
|
|
});
|
|
|
|
|
|
|
|
describe("Default configuration", function() {
|
|
|
|
|
|
|
|
before(function() {
|
|
|
|
process.env.MM_CONFIG_FILE = "tests/configs/modules/newsfeed/default.js";
|
|
|
|
});
|
|
|
|
|
2017-03-10 21:02:33 -03:00
|
|
|
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
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|