Improve node files for UI testing

This commit is contained in:
Kazuhito Yokoi
2020-01-14 16:37:43 +09:00
parent 63978e226b
commit faf46e4447
6 changed files with 27 additions and 30 deletions

View File

@@ -22,13 +22,13 @@ Node.prototype.edit = function() {
browser.clickWithWait(this.id);
browser.clickWithWait(this.id);
// Wait until an edit dialog opens.
browser.waitForVisible('#node-dialog-ok', 4000);
browser.waitForVisible('#node-dialog-ok', 10000);
}
Node.prototype.clickOk = function() {
browser.clickWithWait('#node-dialog-ok');
// Wait untile an edit dialog closes.
browser.waitForVisible('#node-dialog-ok', 4000, true);
browser.waitForVisible('#node-dialog-ok', 10000, true);
browser.pause(50);
}