1
0
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:
Nick O'Leary 2020-03-09 11:17:49 +00:00 committed by GitHub
commit 1c63d7ff31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;