@wdio/utils 5.18.6 → 5.23.0
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/build/envDetector.js
CHANGED
|
@@ -79,7 +79,7 @@ function sessionEnvironmentDetector({
|
|
|
79
79
|
isMobile: isMobile(capabilities),
|
|
80
80
|
isIOS: isIOS(capabilities),
|
|
81
81
|
isAndroid: isAndroid(capabilities),
|
|
82
|
-
isSauce: isSauce(requestedCapabilities
|
|
82
|
+
isSauce: isSauce(requestedCapabilities),
|
|
83
83
|
isSeleniumStandalone: isSeleniumStandalone(capabilities)
|
|
84
84
|
};
|
|
85
85
|
}
|
package/build/monad.js
CHANGED
|
@@ -33,6 +33,9 @@ function WebDriver(options, modifier, propertiesObject = {}) {
|
|
|
33
33
|
propertiesObject.options = {
|
|
34
34
|
value: options
|
|
35
35
|
};
|
|
36
|
+
propertiesObject.requestedCapabilities = {
|
|
37
|
+
value: options.requestedCapabilities
|
|
38
|
+
};
|
|
36
39
|
|
|
37
40
|
if (typeof commandWrapper === 'function') {
|
|
38
41
|
for (const [commandName, {
|
|
@@ -46,7 +46,7 @@ const testFrameworkFnWrapper = async function ({
|
|
|
46
46
|
limit: repeatTest
|
|
47
47
|
};
|
|
48
48
|
const beforeArgs = mochaJasmineCompatibility(beforeFnArgs(this), this);
|
|
49
|
-
await (0, _errorHandler.logHookError)(`Before${type}`,
|
|
49
|
+
await (0, _errorHandler.logHookError)(`Before${type}`, await executeHooksWithArgs(beforeFn, beforeArgs), cid);
|
|
50
50
|
let promise;
|
|
51
51
|
let result;
|
|
52
52
|
let error;
|
|
@@ -82,7 +82,7 @@ const testFrameworkFnWrapper = async function ({
|
|
|
82
82
|
afterArgs = mochaJasmineCompatibility(afterArgs, this);
|
|
83
83
|
afterArgs = mochaJasmineResultCompatibility(afterArgs, error, duration);
|
|
84
84
|
afterArgs = cucumberCompatibility(afterArgs);
|
|
85
|
-
await (0, _errorHandler.logHookError)(`After${type}`,
|
|
85
|
+
await (0, _errorHandler.logHookError)(`After${type}`, await executeHooksWithArgs(afterFn, [...afterArgs]), cid);
|
|
86
86
|
|
|
87
87
|
if (error) {
|
|
88
88
|
throw error;
|
|
@@ -113,7 +113,7 @@ const mochaJasmineResultCompatibility = (afterArgs, error, duration) => {
|
|
|
113
113
|
let args = afterArgs;
|
|
114
114
|
|
|
115
115
|
if (afterArgs.length === 3 && afterArgs[0] && typeof afterArgs[0] === 'object') {
|
|
116
|
-
args = [_objectSpread({}, afterArgs[0], {
|
|
116
|
+
args = [_objectSpread(_objectSpread({}, afterArgs[0]), {}, {
|
|
117
117
|
error,
|
|
118
118
|
duration,
|
|
119
119
|
passed: !error
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/utils",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.23.0",
|
|
4
4
|
"description": "A WDIO helper utility to provide several utility functions used across the project.",
|
|
5
5
|
"author": "Christian Bromann <christian@saucelabs.com>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/master/packages/wdio-utils",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"publishConfig": {
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "a9b8098ad18074e05a72c0458a7845a41a40aa93"
|
|
41
41
|
}
|