froth-webdriverio-framework 7.0.61 → 7.0.63
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/froth_configs/commonhook.js +13 -0
- package/package.json +1 -1
|
@@ -335,6 +335,7 @@ async function normalizeWdioError(error) {
|
|
|
335
335
|
return `Automation framework error: ${msg}`;
|
|
336
336
|
}
|
|
337
337
|
async function getBrowserStackCapabilities(baseCaps) {
|
|
338
|
+
|
|
338
339
|
if (
|
|
339
340
|
process.env.PLATFORM !== 'browserstack' &&
|
|
340
341
|
process.env.PLATFORM !== 'browserstacklocal'
|
|
@@ -342,6 +343,18 @@ async function getBrowserStackCapabilities(baseCaps) {
|
|
|
342
343
|
return baseCaps;
|
|
343
344
|
}
|
|
344
345
|
|
|
346
|
+
if (process.env.BS_SESSION_TYPE === 'app-automate') {
|
|
347
|
+
const appPath = process.env.BROWSERSTACK_APP_PATH;
|
|
348
|
+
if (!appPath) {
|
|
349
|
+
await failExecution('BROWSERSTACK_APP_PATH is missing');
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
//baseCaps.app = appPath;
|
|
353
|
+
baseCaps['appium:app'] = appPath;
|
|
354
|
+
console.log('✅ App & media set in before session');
|
|
355
|
+
|
|
356
|
+
}
|
|
357
|
+
|
|
345
358
|
// Ensure we work with array
|
|
346
359
|
const capsArray = Array.isArray(baseCaps) ? baseCaps : [baseCaps];
|
|
347
360
|
|