mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 11:50:00 +00:00
Adds test to check that newsfeed description does not show up
This commit is contained in:
parent
cb67286bc3
commit
fdb0c0acb3
@ -27,8 +27,7 @@ let config = {
|
|||||||
title: "Rodrigo Ramirez Blog",
|
title: "Rodrigo Ramirez Blog",
|
||||||
url: "http://localhost:8080/tests/configs/data/feed_test_rodrigoramirez.xml"
|
url: "http://localhost:8080/tests/configs/data/feed_test_rodrigoramirez.xml"
|
||||||
}
|
}
|
||||||
],
|
]
|
||||||
showDescription: true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -27,7 +27,8 @@ let config = {
|
|||||||
url: "http://localhost:8080/tests/configs/data/feed_test_rodrigoramirez.xml"
|
url: "http://localhost:8080/tests/configs/data/feed_test_rodrigoramirez.xml"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
prohibitedWords: ["QPanel"]
|
prohibitedWords: ["QPanel"],
|
||||||
|
showDescription: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -37,8 +37,8 @@ describe("Newsfeed module", function () {
|
|||||||
return app.client.waitUntilTextExists(".newsfeed .newsfeed-title", "QPanel", 10000);
|
return app.client.waitUntilTextExists(".newsfeed .newsfeed-title", "QPanel", 10000);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should show the newsfeed description", function () {
|
it("should not show the newsfeed description", function () {
|
||||||
return app.client.waitUntilTextExists(".newsfeed .newsfeed-desc", "Para instalar esta nueva versión", 10000);
|
return !app.client.waitUntilTextExists(".newsfeed .newsfeed-desc", "Para instalar esta nueva versión", 10000);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -50,6 +50,10 @@ describe("Newsfeed module", function () {
|
|||||||
it("should not show articles with prohibited words", function () {
|
it("should not show articles with prohibited words", function () {
|
||||||
return app.client.waitUntilTextExists(".newsfeed .newsfeed-title", "Problema VirtualBox", 10000);
|
return app.client.waitUntilTextExists(".newsfeed .newsfeed-title", "Problema VirtualBox", 10000);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it("should show the newsfeed description", function () {
|
||||||
|
return app.client.waitUntilTextExists(".newsfeed .newsfeed-desc", "Después de una actualización de Debian", 10000);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe("Invalid configuration", function () {
|
describe("Invalid configuration", function () {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user