use expect where missing

This commit is contained in:
Karsten Hassel
2021-06-14 21:07:38 +02:00
parent ee23c5f72c
commit e3a5bbf661
6 changed files with 13 additions and 11 deletions

View File

@@ -27,12 +27,12 @@ describe("Display of modules", function () {
it("should show the test header", async () => {
const elem = await app.client.$("#module_0_helloworld .module-header", 10000);
return elem.getText("#module_0_helloworld .module-header") === "TEST_HEADER";
return expect(await elem.getText("#module_0_helloworld .module-header")).toBe("TEST_HEADER");
});
it("should show no header if no header text is specified", async () => {
const elem = await app.client.$("#module_1_helloworld .module-header", 10000);
return elem.getText("#module_1_helloworld .module-header") === false;
return expect(await elem.getText("#module_1_helloworld .module-header")).toBe("");
});
});
});