froth-webdriverio-framework 6.0.48 → 6.0.50

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.
@@ -2,7 +2,7 @@
2
2
  const commonHooks = require('../commonhook');
3
3
  module.exports = (bsCaps) => ({
4
4
 
5
- ...commonHooks,
5
+ //...commonHooks,
6
6
  user: bsCaps.userName,
7
7
  key: Buffer.from(bsCaps.accessKey, 'base64').toString('utf-8'),
8
8
 
@@ -16,7 +16,7 @@ module.exports = (bsCaps) => ({
16
16
  forcelocal: false,
17
17
  localIdentifier: `wdio-${process.pid}`,
18
18
  },
19
- app: process.env.BROWSERSTACK_APP_PATH,
19
+ app: process.env.BROWSERSTACK_APP_PATH||'bs://30fdf3a163d0bad126f64a3d5713e9ab0086a41e',
20
20
  },
21
21
  ],
22
22
  ],
@@ -13,34 +13,34 @@ module.exports = {
13
13
  console.log('✅ App & media updated before execution');
14
14
  },
15
15
 
16
- // beforeSession: async function (config, capabilities, specs) {
17
- // try {
18
- // if (config.services) {
19
- // const bsService = config.services.find(
20
- // s => Array.isArray(s) && s[0] === 'browserstack'
21
- // );
22
-
23
- // if (bsService) {
24
- // bsService[1].app = process.env.BROWSERSTACK_APP_PATH
25
- // // bsService[1].browserstackLocal = isLocal;
26
-
27
- // // if (isLocal) {
28
- // // bsService[1].opts = bsService[1].opts || {};
29
- // // bsService[1].opts.forcelocal = true;
30
- // // bsService[1].opts.localIdentifier = `wdio-${process.pid}`;
31
- // // }
32
-
33
- // // console.log(`✅ BrowserStack Local: ${bsService[1].browserstackLocal}`);
34
- // console.log(`✅ App Path: ${bsService[1].app}`);
35
- // console.log("config details " + JSON.stringify(config))
36
- // console.log("Capability details " + JSON.stringify(capabilities))
37
-
38
- // }
39
- // }
40
-
41
- // } catch (error) {
42
- // console.error('🚨 Error in beforeSession:', error);
43
- // console.error('🚨 Error in beforeSession:', error.message);
44
- // }
45
- // }
16
+ beforeSession: async function (config, capabilities, specs) {
17
+ try {
18
+ if (config.services) {
19
+ const bsService = config.services.find(
20
+ s => Array.isArray(s) && s[0] === 'browserstack'
21
+ );
22
+
23
+ // if (bsService) {
24
+ // bsService[1].app = process.env.BROWSERSTACK_APP_PATH
25
+ // // bsService[1].browserstackLocal = isLocal;
26
+
27
+ // if (isLocal) {
28
+ // bsService[1].opts = bsService[1].opts || {};
29
+ // bsService[1].opts.forcelocal = true;
30
+ // bsService[1].opts.localIdentifier = `wdio-${process.pid}`;
31
+ // }
32
+
33
+ // console.log(`✅ BrowserStack Local: ${bsService[1].browserstackLocal}`);
34
+ console.log(`✅ App Path: ${bsService[1].app}`);
35
+ console.log("config details " + JSON.stringify(config))
36
+ console.log("Capability details " + JSON.stringify(capabilities))
37
+
38
+ // }
39
+ }
40
+
41
+ } catch (error) {
42
+ console.error('🚨 Error in beforeSession:', error);
43
+ console.error('🚨 Error in beforeSession:', error.message);
44
+ }
45
+ }
46
46
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "froth-webdriverio-framework",
3
- "version": "6.0.48",
3
+ "version": "6.0.50",
4
4
  "readme": "WendriverIO Integration with [BrowserStack](https://www.browserstack.com)",
5
5
  "description": "Selenium examples for WebdriverIO and BrowserStack App Automate",
6
6
  "scripts": {