mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-30 13:09:34 +00:00
Add first test for newsfeed module.
This test case check if set newsfeed title
This commit is contained in:
parent
ccf612f536
commit
2a94ee55cc
@ -18,14 +18,11 @@ describe("Newsfeed module", function () {
|
|||||||
describe("Default configuration", function() {
|
describe("Default configuration", function() {
|
||||||
|
|
||||||
before(function() {
|
before(function() {
|
||||||
// Set config sample for use in test
|
|
||||||
process.env.MM_CONFIG_FILE = "tests/configs/modules/newsfeed/default.js";
|
process.env.MM_CONFIG_FILE = "tests/configs/modules/newsfeed/default.js";
|
||||||
});
|
});
|
||||||
|
|
||||||
it("Check here", function () {
|
it("show title newsfeed", function () {
|
||||||
return app.client.waitUntilTextExists(".newsfeed .small", "New York Times, in day:", 10000);
|
return app.client.waitUntilTextExists(".newsfeed .small", "Rodrigo Ramirez Blog", 10000).should.be.fulfilled;
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user