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

@@ -28,7 +28,9 @@ describe("Position of modules", function () {
const className = position.replace("_", ".");
it("should show text in " + position, function () {
return app.client.$("." + className).then((result) => {
return result.getText("." + className) === "Text in " + position;
return result.getText("." + className).then((text) => {
return expect(text).toContain("Text in " + position);
});
});
});
}