mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Fix XPath in UI tests
This commit is contained in:
parent
32aa4c41ce
commit
491812fac5
@ -85,7 +85,7 @@ changeNode.prototype.ruleMove = function (p, to, index) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
changeNode.prototype.addRule = function () {
|
changeNode.prototype.addRule = function () {
|
||||||
browser.clickWithWait('//*[@id="dialog-form"]/div[5]/div/a');
|
browser.clickWithWait('//div[contains(@class, "red-ui-editableList")]/a');
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = changeNode;
|
module.exports = changeNode;
|
||||||
|
@ -29,7 +29,7 @@ jsonNode.prototype.setAction = function (action) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
jsonNode.prototype.setProperty = function (property) {
|
jsonNode.prototype.setProperty = function (property) {
|
||||||
browser.setValue('//*[@id="dialog-form"]/div[4]/div/div[1]/input', property);
|
browser.setValue('//*[contains(@class, "red-ui-typedInput-container")]/div[1]/input', property);
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = jsonNode;
|
module.exports = jsonNode;
|
||||||
|
@ -29,7 +29,7 @@ xmlNode.prototype.setAction = function (action) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
xmlNode.prototype.setProperty = function (property) {
|
xmlNode.prototype.setProperty = function (property) {
|
||||||
browser.setValue('//*[@id="dialog-form"]/div[3]/div/div[1]/input', property);
|
browser.setValue('//*[contains(@class, "red-ui-typedInput-container")]/div[1]/input', property);
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = xmlNode;
|
module.exports = xmlNode;
|
||||||
|
@ -29,7 +29,7 @@ yamlNode.prototype.setAction = function (action) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
yamlNode.prototype.setProperty = function (property) {
|
yamlNode.prototype.setProperty = function (property) {
|
||||||
browser.setValue('//*[@id="dialog-form"]/div[3]/div/div[1]/input', property);
|
browser.setValue('//*[contains(@class, "red-ui-typedInput-container")]/div[1]/input', property);
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = yamlNode;
|
module.exports = yamlNode;
|
||||||
|
Loading…
Reference in New Issue
Block a user