mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Add page objects for UI testing (#2501)
* Update page object of change node * Support multiple node outputs in UI testing * Add page object of switch node * Add page objects of trigger and exec nodes * Remove unnecessary code * Update page object of trigger node to select time unit * Add page objects of websocket nodes * Support boolean as value in selectWithWait() * Update page object of split node * Merge page objects of mqtt nodes to make them same as original mqtt node file path
This commit is contained in:
@@ -35,10 +35,11 @@ Node.prototype.clickOk = function () {
|
||||
browser.pause(50);
|
||||
}
|
||||
|
||||
Node.prototype.connect = function (targetNode) {
|
||||
var outputPort = this.id + '/*[@class="red-ui-flow-port-output"]';
|
||||
Node.prototype.connect = function (targetNode, port) {
|
||||
port = port || 1;
|
||||
var outputPort = this.id + '/*[@class="red-ui-flow-port-output"][' + port + ']';
|
||||
var inputPort = targetNode.id + '/*[@class="red-ui-flow-port-input"]';
|
||||
browser.dragAndDrop(outputPort, inputPort)
|
||||
browser.dragAndDrop(outputPort, inputPort);
|
||||
}
|
||||
|
||||
Node.prototype.clickLeftButton = function () {
|
||||
|
Reference in New Issue
Block a user