mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Merge pull request #2489 from kazuhitoyokoi/master-fixuitest
Fix XPath in page objects for UI tests
This commit is contained in:
commit
1c63d7ff31
@ -85,7 +85,7 @@ changeNode.prototype.ruleMove = function (p, to, index) {
|
||||
}
|
||||
|
||||
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;
|
||||
|
@ -29,7 +29,7 @@ jsonNode.prototype.setAction = function (action) {
|
||||
}
|
||||
|
||||
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;
|
||||
|
@ -29,7 +29,7 @@ xmlNode.prototype.setAction = function (action) {
|
||||
}
|
||||
|
||||
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;
|
||||
|
@ -29,7 +29,7 @@ yamlNode.prototype.setAction = function (action) {
|
||||
}
|
||||
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user