Adds test to check that newsfeed description does not show up

This commit is contained in:
oemel09
2021-04-09 08:05:19 +02:00
parent cb67286bc3
commit fdb0c0acb3
3 changed files with 9 additions and 5 deletions

View File

@@ -37,8 +37,8 @@ describe("Newsfeed module", function () {
return app.client.waitUntilTextExists(".newsfeed .newsfeed-title", "QPanel", 10000);
});
it("should show the newsfeed description", function () {
return app.client.waitUntilTextExists(".newsfeed .newsfeed-desc", "Para instalar esta nueva versión", 10000);
it("should not show the newsfeed description", function () {
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 () {
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 () {