@nightwatch/browserstack
Advanced tools
Comparing version 3.4.3 to 3.4.4
@@ -342,2 +342,3 @@ const LocalTunnel = require('../src/local-tunnel'); | ||
addProductMapAndbuildUuidCapability(settings); | ||
}, | ||
@@ -421,2 +422,3 @@ | ||
} | ||
addProductMapAndbuildUuidCapability(settings); | ||
@@ -452,1 +454,30 @@ } | ||
}; | ||
const addProductMapAndbuildUuidCapability = (settings) => { | ||
try { | ||
if (!settings?.desiredCapabilities) { | ||
return; | ||
} | ||
const product = helper.getObservabilityLinkedProductName(settings.desiredCapabilities, settings?.selenium?.host); | ||
const buildProductMap = { | ||
automate: product === 'automate', | ||
app_automate: product === 'app-automate', | ||
observability: helper.isTestObservabilitySession(), | ||
accessibility: helper.isAccessibilitySession(), | ||
turboscale: product === 'turboscale', | ||
percy: false | ||
}; | ||
if (settings.desiredCapabilities['bstack:options']) { | ||
settings.desiredCapabilities['bstack:options']['buildProductMap'] = buildProductMap; | ||
settings.desiredCapabilities['bstack:options']['testhubBuildUuid'] = process.env.BS_TESTOPS_BUILD_HASHED_ID ? process.env.BS_TESTOPS_BUILD_HASHED_ID : '' ; | ||
} else { | ||
settings.desiredCapabilities['browserstack.buildProductMap'] = buildProductMap; | ||
settings.desiredCapabilities['browserstack.testhubBuildUuid'] = process.env.BS_TESTOPS_BUILD_HASHED_ID ? process.env.BS_TESTOPS_BUILD_HASHED_ID : '' ; | ||
} | ||
} catch (error) { | ||
Logger.debug(`Error while sending productmap and build capabilities ${error}`); | ||
} | ||
}; |
{ | ||
"name": "@nightwatch/browserstack", | ||
"version": "3.4.3", | ||
"version": "3.4.4", | ||
"description": "Nightwatch plugin for integration with browserstack.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -17,3 +17,5 @@ const os = require('os'); | ||
if (this._settings.test_observability) { | ||
process.env.BROWSERSTACK_TEST_OBSERVABILITY = true; | ||
if (!helper.isUndefined(this._settings.test_observability) && !helper.isUndefined(this._settings.test_observability.enabled)) { | ||
process.env.BROWSERSTACK_TEST_OBSERVABILITY = this._settings.test_observability.enabled; | ||
@@ -20,0 +22,0 @@ } |
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
109489
2681
93