mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Fix page object of debug node
This commit is contained in:
parent
6a70cd1975
commit
b90710945a
@ -29,11 +29,11 @@ debugNode.prototype.setOutput = function (complete) {
|
|||||||
browser.clickWithWait('//*[contains(@class, "red-ui-typedInput-container")]/button');
|
browser.clickWithWait('//*[contains(@class, "red-ui-typedInput-container")]/button');
|
||||||
if (complete !== 'true') {
|
if (complete !== 'true') {
|
||||||
// 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")][2]/a[1]');
|
||||||
// Input the path in msg.
|
// Input the path in msg.
|
||||||
browser.clickWithWait('//*[contains(@class, "red-ui-typedInput-input")]/input');
|
browser.clickWithWait('//*[contains(@class, "red-ui-typedInput-input")]/input');
|
||||||
browser.keys(Array('payload'.length).fill('Backspace'));
|
browser.keys(Array('payload'.length).fill('Backspace'));
|
||||||
browser.setValue('//*[contains(@class, "red-ui-typedInput-input")]/input', complete);
|
browser.setValue('//*[@id="dialog-form"]/div[1]/div/div[1]/input', complete);
|
||||||
} else {
|
} else {
|
||||||
// Select the "complete msg object" type.
|
// Select the "complete msg object" type.
|
||||||
browser.clickWithWait('/html/body/div[11]/a[2]');
|
browser.clickWithWait('/html/body/div[11]/a[2]');
|
||||||
|
@ -267,7 +267,7 @@ describe('cookbook', function () {
|
|||||||
debugTab.getMessage().should.match(/^"([1-9]?[0-9],){2}[1-9]?[0-9]↵"$/);
|
debugTab.getMessage().should.match(/^"([1-9]?[0-9],){2}[1-9]?[0-9]↵"$/);
|
||||||
debugTab.clearMessage();
|
debugTab.clearMessage();
|
||||||
injectNode2.clickLeftButton();
|
injectNode2.clickLeftButton();
|
||||||
debugTab.getMessage().should.match(/^"a,b,c↵(([1-9]?[0-9],){2}[1-9]?[0-9]↵){4}"$/);
|
debugTab.getMessage().should.match(/^"(([1-9]?[0-9],){2}[1-9]?[0-9]↵){4}"$/);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('parse CSV input', function () {
|
it('parse CSV input', function () {
|
||||||
|
Loading…
Reference in New Issue
Block a user