Support to input JSON path in debug node property

This commit is contained in:
Kazuhito Yokoi 2020-02-25 18:46:02 +09:00
parent 608834eafb
commit 5ecf8c83db
2 changed files with 3 additions and 1 deletions

View File

@ -33,6 +33,8 @@ debugNode.prototype.setOutput = function (complete) {
// Select the "msg" type.
browser.clickWithWait('//div[contains(@class, "red-ui-typedInput-options")][1]/a[1]');
// Input the path in msg.
browser.clickWithWait('//*[contains(@class, "red-ui-typedInput-input")]/input');
browser.keys(Array('payload'.length).fill('Backspace'));
browser.setValue('//*[contains(@class, "red-ui-typedInput-input")]/input', complete);
} else {
// Select the "complete msg object" type.

View File

@ -190,7 +190,7 @@ describe('cookbook', function () {
httpRequestNode.clickOk();
debugNode.edit();
debugNode.setOutput('.title');
debugNode.setOutput('payload.title');
debugNode.clickOk();
injectNode.connect(changeNodeSetPost);