mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-21 04:45:17 +00:00
init sample test case newsfeed_spec
This commit is contained in:
31
tests/e2e/modules/newsfeed_spec.js
Normal file
31
tests/e2e/modules/newsfeed_spec.js
Normal file
@@ -0,0 +1,31 @@
|
||||
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() {
|
||||
// Set config sample for use in test
|
||||
process.env.MM_CONFIG_FILE = "tests/configs/modules/newsfeed/default.js";
|
||||
});
|
||||
|
||||
it("Check here", function () {
|
||||
return app.client.waitUntilTextExists(".newsfeed .small", "New York Times, in day:", 10000);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
});
|
Reference in New Issue
Block a user