mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Fix test cases for UI
This commit is contained in:
@@ -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', 2000);
|
||||
browser.waitForVisible('#node-dialog-ok', 4000);
|
||||
}
|
||||
|
||||
Node.prototype.clickOk = function() {
|
||||
browser.clickWithWait('#node-dialog-ok');
|
||||
// Wait untile an edit dialog closes.
|
||||
browser.waitForVisible('#node-dialog-ok', 2000, true);
|
||||
browser.waitForVisible('#node-dialog-ok', 4000, true);
|
||||
browser.pause(50);
|
||||
}
|
||||
|
||||
@@ -38,8 +38,10 @@ Node.prototype.connect = function(targetNode) {
|
||||
browser.dragAndDrop(outputPort, inputPort)
|
||||
}
|
||||
|
||||
Node.prototype.clickLeftButton = function() {
|
||||
browser.clickWithWait(this.id + '/*[@class="red-ui-flow-node-button"]');
|
||||
Node.prototype.clickLeftButton = function () {
|
||||
browser.moveToObject(this.id + '/*[@class="red-ui-flow-node-button"]');
|
||||
browser.buttonDown();
|
||||
browser.buttonUp();
|
||||
}
|
||||
|
||||
module.exports = Node;
|
||||
|
Reference in New Issue
Block a user