1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Follow the change of typedinput interface for UI test

This commit is contained in:
Kazuki-Nakanishi 2018-06-29 10:41:44 +09:00
parent bc01f9f8fd
commit 17bf09e276

View File

@ -33,6 +33,7 @@ var payloadType = {
"json": 6, "json": 6,
"bin": 7, "bin": 7,
"date": 8, "date": 8,
"env": 9,
}; };
injectNode.prototype.setPayload = function(type, value) { injectNode.prototype.setPayload = function(type, value) {
@ -42,7 +43,7 @@ injectNode.prototype.setPayload = function(type, value) {
var payloadTypeXPath = '//*[@class="red-ui-typedInput-options"]/a[' + payloadType[type] + ']'; var payloadTypeXPath = '//*[@class="red-ui-typedInput-options"]/a[' + payloadType[type] + ']';
browser.clickWithWait(payloadTypeXPath); browser.clickWithWait(payloadTypeXPath);
// Input a value. // Input a value.
browser.setValue('#node-input-payload', value); browser.setValue('//*[@class="red-ui-typedInput-input"]/input', value);
} }
injectNode.prototype.setTopic = function(value) { injectNode.prototype.setTopic = function(value) {