roku-test-automation
Advanced tools
Comparing version 2.0.7 to 2.0.8
@@ -165,9 +165,3 @@ "use strict"; | ||
args.convertResponseToJsonCompatible = false; | ||
let result; | ||
if (args.field !== undefined) { | ||
result = await this.sendRequest(ODC.RequestType.setValue, args, options); | ||
} | ||
else { | ||
result = await this.sendRequest(ODC.RequestType.setValue, this.breakOutFieldFromKeyPath(args), options); | ||
} | ||
const result = await this.sendRequest(ODC.RequestType.setValue, this.breakOutFieldFromKeyPath(args), options); | ||
return result.json; | ||
@@ -546,4 +540,7 @@ } | ||
} | ||
const keyPathParts = args.keyPath.split('.'); | ||
return Object.assign(Object.assign({}, args), { field: keyPathParts.pop(), keyPath: keyPathParts.join('.') }); | ||
if (args.field === undefined) { | ||
const keyPathParts = args.keyPath.split('.'); | ||
return Object.assign(Object.assign({}, args), { field: keyPathParts.pop(), keyPath: keyPathParts.join('.') }); | ||
} | ||
return args; | ||
} | ||
@@ -805,3 +802,3 @@ setupClientSocket(options) { | ||
const date = new Date; | ||
const formattedDate = `${utils_1.utils.lpad(date.getMonth())}-${utils_1.utils.lpad(date.getDate())} ${utils_1.utils.lpad(date.getHours())}:${utils_1.utils.lpad(date.getMinutes())}:${utils_1.utils.lpad(date.getSeconds())}:${utils_1.utils.lpad(date.getMilliseconds(), 3)}`; | ||
const formattedDate = `${utils_1.utils.lpad(date.getMonth() + 1)}-${utils_1.utils.lpad(date.getDate())} ${utils_1.utils.lpad(date.getHours())}:${utils_1.utils.lpad(date.getMinutes())}:${utils_1.utils.lpad(date.getSeconds())}:${utils_1.utils.lpad(date.getMilliseconds(), 3)}`; | ||
console.log(`${formattedDate} [ODC][${this.device.getCurrentDeviceConfig().host}] ${message}`, ...args); | ||
@@ -808,0 +805,0 @@ } |
@@ -307,2 +307,4 @@ /// <reference types="node" /> | ||
retryTimeout?: number; | ||
/** The field that we want to observe for changes on. If not supplied, the last part of `keyPath` will be */ | ||
field?: string; | ||
/** If provided will only return when this matches (including if it already equals that value) */ | ||
@@ -309,0 +311,0 @@ match?: MatchObject | ComparableValueTypes; |
{ | ||
"name": "roku-test-automation", | ||
"version": "2.0.7", | ||
"version": "2.0.8", | ||
"description": "Helps with automating functional tests", | ||
@@ -5,0 +5,0 @@ "main": "client/dist/index.js", |
@@ -40,2 +40,6 @@ # Roku Test Automation | ||
## Contributing & Getting Help | ||
There is always more things that we would like to add than we have time for. If you would like to help contribute the best spot to reach out is in the [Roku Developers Slack](https://join.slack.com/t/rokudevelopers/shared_invite/zt-4vw7rg6v-NH46oY7hTktpRIBM_zGvwA). (We're in the #rta channel). If you are having trouble getting RTA working feel free to reach out there as well. If you see an issue or would like to see something added then feel free to [create a new Github Issue](https://github.com/triwav/roku-test-automation/issues/new) | ||
## v2.0 Changes | ||
@@ -42,0 +46,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
429118
5505
523