@wdio/utils 9.12.5 → 9.13.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"envDetector.d.ts","sourceRoot":"","sources":["../src/envDetector.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAS/C;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,YAAY,CAAC,EAAE,WAAW,CAAC,YAAY,WAqC5D;
|
|
1
|
+
{"version":3,"file":"envDetector.d.ts","sourceRoot":"","sources":["../src/envDetector.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAS/C;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,YAAY,CAAC,EAAE,WAAW,CAAC,YAAY,WAqC5D;AAuND;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,YAAY,EAAE,WAAW,CAAC,YAAY,WAM5D;AAoCD;;;;GAIG;AACH,wBAAgB,+BAA+B,CAAC,YAAY,EAAE,WAAW,CAAC,YAAY;;;;;;;;;;;EAarF;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CAAC,EACvC,YAAY,EACZ,qBAAqB,EACxB,EAAE;IACC,YAAY,EAAE,WAAW,CAAC,YAAY,CAAC;IACvC,qBAAqB,EAAE,YAAY,CAAC,+BAA+B,CAAA;CACtE;;;;;;;;;;;;;EAeA"}
|
package/build/index.js
CHANGED
|
@@ -1096,6 +1096,7 @@ var testFrameworkFnWrapper = async function({ executeHooksWithArgs: executeHooks
|
|
|
1096
1096
|
await logHookError(`Before${type}`, await executeHooksWithArgs2(`before${type}`, beforeFn, beforeArgs), cid);
|
|
1097
1097
|
let result;
|
|
1098
1098
|
let error;
|
|
1099
|
+
let skip = false;
|
|
1099
1100
|
const testStart = Date.now();
|
|
1100
1101
|
try {
|
|
1101
1102
|
result = await executeAsync2.call(this, specFn, retries, specFnArgs, timeout);
|
|
@@ -1109,11 +1110,15 @@ var testFrameworkFnWrapper = async function({ executeHooksWithArgs: executeHooks
|
|
|
1109
1110
|
globalThis._wdioDynamicJasmineResultErrorList = void 0;
|
|
1110
1111
|
}
|
|
1111
1112
|
} catch (_err) {
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1113
|
+
if (!(JSON.stringify(_err, Object.getOwnPropertyNames(_err)).includes("sync skip; aborting execution") || JSON.stringify(_err, Object.getOwnPropertyNames(_err)).includes("marked Pending"))) {
|
|
1114
|
+
const err = _err instanceof Error ? _err : new Error(typeof _err === "string" ? _err : "An unknown error occurred");
|
|
1115
|
+
if (err.stack) {
|
|
1116
|
+
err.stack = filterStackTrace(err.stack);
|
|
1117
|
+
}
|
|
1118
|
+
error = err;
|
|
1119
|
+
} else {
|
|
1120
|
+
skip = true;
|
|
1115
1121
|
}
|
|
1116
|
-
error = err;
|
|
1117
1122
|
}
|
|
1118
1123
|
const duration = Date.now() - testStart;
|
|
1119
1124
|
const afterArgs = afterFnArgs(this);
|
|
@@ -1122,7 +1127,8 @@ var testFrameworkFnWrapper = async function({ executeHooksWithArgs: executeHooks
|
|
|
1122
1127
|
error,
|
|
1123
1128
|
result,
|
|
1124
1129
|
duration,
|
|
1125
|
-
passed: !error
|
|
1130
|
+
passed: !error && !skip,
|
|
1131
|
+
skipped: skip
|
|
1126
1132
|
});
|
|
1127
1133
|
if (type === "Hook" && hookName) {
|
|
1128
1134
|
afterArgs.push(hookName);
|
|
@@ -1309,7 +1315,7 @@ function isFirefox(capabilities) {
|
|
|
1309
1315
|
return capabilities.browserName === "firefox" || Boolean(Object.keys(capabilities).find((cap) => cap.startsWith("moz:")));
|
|
1310
1316
|
}
|
|
1311
1317
|
function getAutomationName(capabilities) {
|
|
1312
|
-
return capabilities["appium:options"]?.automationName || capabilities["appium:automationName"];
|
|
1318
|
+
return capabilities["appium:options"]?.automationName || capabilities["appium:automationName"] || capabilities["automationName"];
|
|
1313
1319
|
}
|
|
1314
1320
|
function isMobile(capabilities) {
|
|
1315
1321
|
const browserName = (capabilities.browserName || "").toLowerCase();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Services,
|
|
1
|
+
import type { Services, Capabilities } from '@wdio/types';
|
|
2
2
|
/**
|
|
3
3
|
* initialize service for launcher process
|
|
4
4
|
* @param {Object} config wdio config
|
|
@@ -7,7 +7,7 @@ import type { Services, Options, Capabilities } from '@wdio/types';
|
|
|
7
7
|
* as a list of services that don't need to be
|
|
8
8
|
* required in the worker
|
|
9
9
|
*/
|
|
10
|
-
export declare function initializeLauncherService(config: Omit<
|
|
10
|
+
export declare function initializeLauncherService(config: Omit<WebdriverIO.Config, 'capabilities' | keyof Services.HookFunctions>, caps: Capabilities.TestrunnerCapabilities): Promise<{
|
|
11
11
|
ignoredWorkerServices: string[];
|
|
12
12
|
launcherServices: Services.ServiceInstance[];
|
|
13
13
|
}>;
|
|
@@ -19,5 +19,5 @@ export declare function initializeLauncherService(config: Omit<Options.Testrunne
|
|
|
19
19
|
* as they don't export a service for it
|
|
20
20
|
* @return {Object[]} list if worker initiated worker services
|
|
21
21
|
*/
|
|
22
|
-
export declare function initializeWorkerService(config:
|
|
22
|
+
export declare function initializeWorkerService(config: WebdriverIO.Config, caps: WebdriverIO.Capabilities, ignoredWorkerServices?: string[]): Promise<Services.ServiceInstance[]>;
|
|
23
23
|
//# sourceMappingURL=initializeServices.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initializeServices.d.ts","sourceRoot":"","sources":["../src/initializeServices.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"initializeServices.d.ts","sourceRoot":"","sources":["../src/initializeServices.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAqFzD;;;;;;;GAOG;AACH,wBAAsB,yBAAyB,CAC3C,MAAM,EAAE,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM,QAAQ,CAAC,aAAa,CAAC,EAC/E,IAAI,EAAE,YAAY,CAAC,sBAAsB,GAC1C,OAAO,CAAC;IACH,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAChC,gBAAgB,EAAE,QAAQ,CAAC,eAAe,EAAE,CAAC;CAChD,CAAC,CAmDL;AAED;;;;;;;GAOG;AACH,wBAAsB,uBAAuB,CACzC,MAAM,EAAE,WAAW,CAAC,MAAM,EAC1B,IAAI,EAAE,WAAW,CAAC,YAAY,EAC9B,qBAAqB,GAAE,MAAM,EAAO,GACrC,OAAO,CAAC,QAAQ,CAAC,eAAe,EAAE,CAAC,CA+BrC"}
|
package/build/node.js
CHANGED
|
@@ -312,7 +312,7 @@ If you like to run a local browser session make sure to pick from one of the fol
|
|
|
312
312
|
const { executablePath: chromeExecuteablePath, browserVersion } = await setupPuppeteerBrowser(cacheDir, caps);
|
|
313
313
|
const { executablePath: chromedriverExcecuteablePath } = chromedriverBinary ? { executablePath: chromedriverBinary } : await setupChromedriver(cacheDir, browserVersion);
|
|
314
314
|
caps["goog:chromeOptions"] = deepmerge(
|
|
315
|
-
{ binary: chromeExecuteablePath },
|
|
315
|
+
{ binary: chromeExecuteablePath, prefs: { "profile.password_manager_leak_detection": false } },
|
|
316
316
|
caps["goog:chromeOptions"] || {}
|
|
317
317
|
);
|
|
318
318
|
chromedriverOptions.allowedOrigins = chromedriverOptions.allowedOrigins || ["*"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testFnWrapper.d.ts","sourceRoot":"","sources":["../../src/test-framework/testFnWrapper.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACR,cAAc,EACd,YAAY,EACZ,eAAe,EACf,cAAc,EACjB,MAAM,YAAY,CAAA;AAEnB,OAAO,CAAC,MAAM,CAAC;IAGX,IAAI,kCAAkC,EAAE,GAAG,GAAG,SAAS,CAAA;IAEvD,IAAI,kBAAkB,EAAE,GAAG,GAAG,SAAS,CAAA;CAC1C;AAUD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,aAAa,SAChB,OAAO,oNAahB,CAAA;AAED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,sBAAsB,SACzB,OAAO,0CAC2B,cAAc,QAChD,MAAM,0BACY,YAAY,8BACR,eAAe,CAAC,OAAO,CAAC,4BAC1B,cAAc,CAAC,OAAO,CAAC,OAC5C,MAAM,kCAEA,MAAM,YACP,MAAM,
|
|
1
|
+
{"version":3,"file":"testFnWrapper.d.ts","sourceRoot":"","sources":["../../src/test-framework/testFnWrapper.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACR,cAAc,EACd,YAAY,EACZ,eAAe,EACf,cAAc,EACjB,MAAM,YAAY,CAAA;AAEnB,OAAO,CAAC,MAAM,CAAC;IAGX,IAAI,kCAAkC,EAAE,GAAG,GAAG,SAAS,CAAA;IAEvD,IAAI,kBAAkB,EAAE,GAAG,GAAG,SAAS,CAAA;CAC1C;AAUD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,aAAa,SAChB,OAAO,oNAahB,CAAA;AAED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,sBAAsB,SACzB,OAAO,0CAC2B,cAAc,QAChD,MAAM,0BACY,YAAY,8BACR,eAAe,CAAC,OAAO,CAAC,4BAC1B,cAAc,CAAC,OAAO,CAAC,OAC5C,MAAM,kCAEA,MAAM,YACP,MAAM,iBA8DnB,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,UAAW,MAAM,KAAG,MAMhD,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/utils",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.13.0",
|
|
4
4
|
"description": "A WDIO helper utility to provide several utility functions used across the project.",
|
|
5
5
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-utils",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@puppeteer/browsers": "^2.2.0",
|
|
41
41
|
"@wdio/logger": "9.4.4",
|
|
42
|
-
"@wdio/types": "9.
|
|
42
|
+
"@wdio/types": "9.13.0",
|
|
43
43
|
"decamelize": "^6.0.0",
|
|
44
44
|
"deepmerge-ts": "^7.0.3",
|
|
45
45
|
"edgedriver": "^6.1.1",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"publishConfig": {
|
|
55
55
|
"access": "public"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "8eb40a63ea043e3d6c292087b28a8ad4949484b0"
|
|
58
58
|
}
|