testable-utils
Advanced tools
Comparing version 0.3.4 to 0.3.6
const _ = require('lodash'); | ||
const pathModule = require('path'); | ||
@@ -124,4 +125,6 @@ function isWdioContext(browser) { | ||
const id = info.region.name + '-' + info.regionalClientIndex + '-' + info.iteration; | ||
const dir = (process.env.OUTPUT_DIR || '.') + '/'; | ||
browser.saveScreenshot(dir + (isLocal ? '' : id + '-') + name + '.png'); | ||
const dir = process.env.OUTPUT_DIR || '.'; | ||
const path = pathModule.join(dir, (isLocal ? '' : id + '-') + name + '.png'); | ||
browser.saveScreenshot(path); | ||
return path; | ||
}); | ||
@@ -128,0 +131,0 @@ } |
{ | ||
"name": "testable-utils", | ||
"version": "0.3.4", | ||
"version": "0.3.6", | ||
"description": "Utilities for Testable scripts", | ||
@@ -5,0 +5,0 @@ "author": "Avi Stramer", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
42688
729