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,7 +27,7 @@ describe("Test helloworld module", function () {
it("Test message helloworld module", async function () {
const elem = await app.client.$(".helloworld");
return elem.getText(".helloworld") === "Test HelloWorld Module";
return expect(await elem.getText(".helloworld")).toBe("Test HelloWorld Module");
});
});
@@ -39,7 +39,7 @@ describe("Test helloworld module", function () {
it("Test message helloworld module", async function () {
const elem = await app.client.$(".helloworld");
return elem.getText(".helloworld") === "Hello World!";
return expect(await elem.getText(".helloworld")).toBe("Hello World!");
});
});
});