fix e2e tests after spectron update

This commit is contained in:
Karsten Hassel
2021-02-06 23:52:44 +01:00
parent 6fadc76fe3
commit 7ba76020d8
6 changed files with 54 additions and 56 deletions

View File

@@ -33,8 +33,8 @@ describe("Position of modules", function () {
position = positions[idx];
className = position.replace("_", ".");
it("show text in " + position, function () {
app.client.$("." + className).then((result) => {
return this.getText("." + className).should.eventually.equal("Text in " + position);
return app.client.$("." + className).then((result) => {
return result.getText("." + className).should.eventually.equal("Text in " + position);
});
});
}