mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-21 04:45:17 +00:00
snapshot e2e
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
const helpers = require("../global-setup");
|
||||
const expect = require("chai").expect;
|
||||
|
||||
const describe = global.describe;
|
||||
const it = global.it;
|
||||
@@ -41,7 +40,7 @@ describe("Newsfeed module", function () {
|
||||
it("should NOT show the newsfeed description", async () => {
|
||||
await app.client.waitUntilTextExists(".newsfeed .newsfeed-title", "QPanel", 10000);
|
||||
const events = await app.client.$$(".newsfeed .newsfeed-desc");
|
||||
return expect(events.length).equals(0);
|
||||
return expect(events.length).toBe(0);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -57,7 +56,7 @@ describe("Newsfeed module", function () {
|
||||
it("should show the newsfeed description", async () => {
|
||||
await app.client.waitUntilTextExists(".newsfeed .newsfeed-title", "Problema VirtualBox", 10000);
|
||||
const events = await app.client.$$(".newsfeed .newsfeed-desc");
|
||||
return expect(events.length).equals(1);
|
||||
return expect(events.length).toBe(1);
|
||||
});
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user