froth-webdriverio-framework 7.0.71 → 7.0.73
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.
|
@@ -93,7 +93,7 @@ async function pushComment(msg) {
|
|
|
93
93
|
const commonHooks = {
|
|
94
94
|
|
|
95
95
|
/* ========== ON PREPARE ========== */
|
|
96
|
-
onPrepare: async (config) => {
|
|
96
|
+
onPrepare: async (config, capabilities) => {
|
|
97
97
|
|
|
98
98
|
suiteStartTime = Date.now();
|
|
99
99
|
registerGlobalErrorHandlers();
|
|
@@ -105,7 +105,7 @@ const commonHooks = {
|
|
|
105
105
|
await setAllDetails.setSuiteDetails();
|
|
106
106
|
await setAllDetails.setTestDataDetails();
|
|
107
107
|
/** 2️⃣ Setup BrowserStack */
|
|
108
|
-
|
|
108
|
+
|
|
109
109
|
console.log('✅ All Environment Variables:');
|
|
110
110
|
// for (const [key, value] of Object.entries(process.env)) {
|
|
111
111
|
// console.log(`${key} = ${value}`);
|
|
@@ -146,7 +146,7 @@ const commonHooks = {
|
|
|
146
146
|
await validateTestSyntax(specs);
|
|
147
147
|
|
|
148
148
|
// /** 2️⃣ Setup BrowserStack */
|
|
149
|
-
|
|
149
|
+
await setupBrowserStackCapabilities(capabilities);
|
|
150
150
|
|
|
151
151
|
console.log('✅ beforeSession completed successfully');
|
|
152
152
|
|
|
@@ -426,7 +426,7 @@ async function setupBrowserStackCapabilities(capabilities) {
|
|
|
426
426
|
throw new Error('❌ BROWSERSTACK_APP_PATH is missing');
|
|
427
427
|
}
|
|
428
428
|
|
|
429
|
-
bsOpts.app = appPath;
|
|
429
|
+
//bsOpts.app = appPath;
|
|
430
430
|
capabilities['appium:app'] = appPath;
|
|
431
431
|
}
|
|
432
432
|
|
|
@@ -435,6 +435,7 @@ async function setupBrowserStackCapabilities(capabilities) {
|
|
|
435
435
|
'media://8440f686585de9b46e1c966ce764703836f918bc'
|
|
436
436
|
];
|
|
437
437
|
bsOpts.uploadMedia = uploadMediaList;
|
|
438
|
+
capabilities['bstack:options'].uploadMedia = uploadMediaList
|
|
438
439
|
console.log('🟢 bstack:options after amending details:');
|
|
439
440
|
Object.entries(bsOpts).forEach(([key, value]) => {
|
|
440
441
|
console.log(` ${key} : ${JSON.stringify(value)}`);
|