froth-webdriverio-framework 4.0.66 → 4.0.67

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.
File without changes
@@ -31,4 +31,6 @@ async function dismissalert() {
31
31
 
32
32
  }
33
33
 
34
+
35
+
34
36
  module.exports = { acceptalert, dismissalert };
@@ -9,7 +9,7 @@ console.log('=====wdios common config===== ');
9
9
  const PLATFORM = process.env.PLATFORM || 'browserstack';
10
10
  console.log('====>PLATFORM:', PLATFORM);
11
11
 
12
- const configFile = process.env.YML_NAME ;
12
+ const configFile = process.env.YML_NAME;
13
13
 
14
14
  const resultdetails = {
15
15
  comments: [],
@@ -24,6 +24,14 @@ let capabilities;
24
24
 
25
25
  try {
26
26
  capabilities = yaml.load(fs.readFileSync(path.join(path.resolve(process.cwd(), configFile)), 'utf8'));
27
+ // Merge chrome-specific options if applicable
28
+ if ( capabilities.browserName.toLowerCase() === 'chrome') {
29
+ capabilities['goog:chromeOptions'] = {
30
+ prefs: {
31
+ 'profile.default_content_setting_values.notifications': 2
32
+ }
33
+ };
34
+ }
27
35
  } catch (e) {
28
36
  const errorMsg = `The capability file does not exist in the currently configured repository at path: ${path.resolve(process.cwd(), configFile)}: ${e.message},Please update the Capability by editing the file`;
29
37
  console.error(errorMsg);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "froth-webdriverio-framework",
3
- "version": "4.0.66",
3
+ "version": "4.0.67",
4
4
  "readme": "WebdriverIO Integration",
5
5
  "description": "WebdriverIO and BrowserStack App Automate",
6
6
  "license": "MIT",