topological-nodered-wdio 0.5.3 → 0.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/wdio-common.js +3 -3
package/package.json
CHANGED
package/src/wdio-common.js
CHANGED
|
@@ -150,14 +150,14 @@ module.exports.log = async (node) => {
|
|
|
150
150
|
let context = node.context()
|
|
151
151
|
let stepCount = await (context.global.get('stepCount') || 0) + 1
|
|
152
152
|
let document = await context.global.get('document') || ''
|
|
153
|
-
await context.global.set('document', `${document}
|
|
153
|
+
await context.global.set('document', `${document}${stepCount}. Node: ${node.name} - ${node.log}\n`)
|
|
154
154
|
await context.global.set('stepCount', stepCount)
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
module.exports.document = async (node) => {
|
|
158
158
|
let context = node.context()
|
|
159
159
|
let document = await context.global.get('document') || ''
|
|
160
|
-
document = node.line? `${document}\n
|
|
161
|
-
`${document}
|
|
160
|
+
document = node.line? `${document}\n${node.name}${node.refUrl? `\nRef: ${node.refUrl}`:''}\n\n` :
|
|
161
|
+
`${document}********************\n${node.name}${node.refUrl? `\nRef: ${node.refUrl}`:''}\n********************\n`
|
|
162
162
|
await context.global.set('document', document.replaceAll('\\n','\n'))
|
|
163
163
|
}
|