mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Support to input JSON path in debug node property
This commit is contained in:
parent
608834eafb
commit
5ecf8c83db
@ -33,6 +33,8 @@ debugNode.prototype.setOutput = function (complete) {
|
|||||||
// Select the "msg" type.
|
// Select the "msg" type.
|
||||||
browser.clickWithWait('//div[contains(@class, "red-ui-typedInput-options")][1]/a[1]');
|
browser.clickWithWait('//div[contains(@class, "red-ui-typedInput-options")][1]/a[1]');
|
||||||
// Input the path in msg.
|
// 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);
|
browser.setValue('//*[contains(@class, "red-ui-typedInput-input")]/input', complete);
|
||||||
} else {
|
} else {
|
||||||
// Select the "complete msg object" type.
|
// Select the "complete msg object" type.
|
||||||
|
@ -190,7 +190,7 @@ describe('cookbook', function () {
|
|||||||
httpRequestNode.clickOk();
|
httpRequestNode.clickOk();
|
||||||
|
|
||||||
debugNode.edit();
|
debugNode.edit();
|
||||||
debugNode.setOutput('.title');
|
debugNode.setOutput('payload.title');
|
||||||
debugNode.clickOk();
|
debugNode.clickOk();
|
||||||
|
|
||||||
injectNode.connect(changeNodeSetPost);
|
injectNode.connect(changeNodeSetPost);
|
||||||
|
Loading…
Reference in New Issue
Block a user