Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@wdio/utils

Package Overview
Dependencies
Maintainers
3
Versions
298
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wdio/utils - npm Package Compare versions

Comparing version 8.16.3 to 8.16.7

20

build/driver/manager.js

@@ -17,3 +17,8 @@ import logger from '@wdio/logger';

if (isMultiremote) {
return Object.values(multiremoteCaps).map((c) => c.capabilities);
return Object.values(multiremoteCaps).map((c) => {
if (c.automationProtocol === 'devtools') {
return;
}
return c.capabilities;
});
}

@@ -27,2 +32,5 @@ else if (w3cCaps.alwaysMatch) {

const w3cCaps = mrOpts.capabilities;
if (mrOpts.automationProtocol === 'devtools') {
return;
}
if (w3cCaps.alwaysMatch) {

@@ -36,4 +44,6 @@ return w3cCaps.alwaysMatch;

*/
// - browserName is defined so we know it is a browser session
cap.browserName &&
// - capabilities are defined and not empty because automationProtocol is set to `devtools`
cap &&
// - browserName is defined so we know it is a browser session
cap.browserName &&
// - we are not about to run a cloud session

@@ -44,3 +54,5 @@ !definesRemoteDriver(options) &&

// - driver options don't define a binary path
!getDriverOptions(cap).binary));
!getDriverOptions(cap).binary &&
// - user is not defining "devtools" as automation protocol
options.automationProtocol !== 'devtools'));
/**

@@ -47,0 +59,0 @@ * nothing to setup

8

build/driver/utils.js

@@ -41,3 +41,3 @@ import os from 'node:os';

}
const versionString = cp.execSync(`"${chromePath}" --version`).toString();
const versionString = cp.execSync(`"${chromePath}" --version --no-sandbox`).toString();
return versionString.trim().split(' ').pop()?.trim();

@@ -78,3 +78,3 @@ }

/**
* don't set up Chrome if a binary was defined in caps
* don't set up Chrome/Firefox if a binary was defined in caps
*/

@@ -104,3 +104,3 @@ const browserOptions = (browserName === Browser.CHROME

/**
* verify that we have a valid Chrome browser installed
* verify that we have a valid Chrome/Firefox browser installed
*/

@@ -115,3 +115,3 @@ if (tag) {

/**
* otherwise download provided Chrome browser version or "stable"
* otherwise download provided Chrome/Firefox browser version or "stable"
*/

@@ -118,0 +118,0 @@ const tag = browserName === Browser.CHROME

@@ -28,3 +28,3 @@ import logger from '@wdio/logger';

}
const hooksPromises = hooks.map((hook) => new Promise((resolve) => {
const hooksPromises = hooks.map((hook) => new Promise((resolve, reject) => {
let result;

@@ -35,2 +35,11 @@ try {

catch (e) {
/**
* When we use `this.skip()` inside a test or a hook, it's a signal that we want to stop that particular test.
* Mocha, the testing framework, knows how to handle this for its own built-in hooks and test steps.
* However, for our custom hooks, we need to reject the promise, which effectively skips the test case.
* For more details, refer to: https://github.com/mochajs/mocha/pull/3859#issuecomment-534116333
*/
if (/^(sync|async) skip; aborting execution$/.test(e.message)) {
return reject();
}
log.error(e.stack);

@@ -37,0 +46,0 @@ return resolve(e);

{
"name": "@wdio/utils",
"version": "8.16.3",
"version": "8.16.7",
"description": "A WDIO helper utility to provide several utility functions used across the project.",

@@ -35,3 +35,3 @@ "author": "Christian Bromann <mail@bromann.dev>",

"@wdio/logger": "8.11.0",
"@wdio/types": "8.16.3",
"@wdio/types": "8.16.7",
"decamelize": "^6.0.0",

@@ -51,3 +51,3 @@ "deepmerge-ts": "^5.1.0",

},
"gitHead": "2c05558b0e4d6ecdca5eb7b0ed37d4a4e733b5a5"
"gitHead": "15f7f225e6a81ea0e5e7a9ba8067ca59007f09c2"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc