@wdio/utils 9.12.3 → 9.12.6
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
|
@@ -181,7 +181,12 @@ function commandCallStructure(commandName, args, unfurl = false) {
|
|
|
181
181
|
* "/html/body/a" a true value which is why we should
|
|
182
182
|
* include a command check in here.
|
|
183
183
|
*/
|
|
184
|
-
!commandName.startsWith("findElement") &&
|
|
184
|
+
!commandName.startsWith("findElement") && /**
|
|
185
|
+
* the isBase64 method returns for the argument value like
|
|
186
|
+
* "9A562133B0552E0ECB7628F2E8A09E86" a true value which is
|
|
187
|
+
* why we should include a command check in here.
|
|
188
|
+
*/
|
|
189
|
+
!commandName.startsWith("switch") && isBase64(arg)) {
|
|
185
190
|
arg = SCREENSHOT_REPLACEMENT;
|
|
186
191
|
} else if (typeof arg === "string") {
|
|
187
192
|
arg = `"${arg}"`;
|
|
@@ -1091,6 +1096,7 @@ var testFrameworkFnWrapper = async function({ executeHooksWithArgs: executeHooks
|
|
|
1091
1096
|
await logHookError(`Before${type}`, await executeHooksWithArgs2(`before${type}`, beforeFn, beforeArgs), cid);
|
|
1092
1097
|
let result;
|
|
1093
1098
|
let error;
|
|
1099
|
+
let skip = false;
|
|
1094
1100
|
const testStart = Date.now();
|
|
1095
1101
|
try {
|
|
1096
1102
|
result = await executeAsync2.call(this, specFn, retries, specFnArgs, timeout);
|
|
@@ -1104,11 +1110,15 @@ var testFrameworkFnWrapper = async function({ executeHooksWithArgs: executeHooks
|
|
|
1104
1110
|
globalThis._wdioDynamicJasmineResultErrorList = void 0;
|
|
1105
1111
|
}
|
|
1106
1112
|
} catch (_err) {
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
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;
|
|
1110
1121
|
}
|
|
1111
|
-
error = err;
|
|
1112
1122
|
}
|
|
1113
1123
|
const duration = Date.now() - testStart;
|
|
1114
1124
|
const afterArgs = afterFnArgs(this);
|
|
@@ -1117,7 +1127,8 @@ var testFrameworkFnWrapper = async function({ executeHooksWithArgs: executeHooks
|
|
|
1117
1127
|
error,
|
|
1118
1128
|
result,
|
|
1119
1129
|
duration,
|
|
1120
|
-
passed: !error
|
|
1130
|
+
passed: !error && !skip,
|
|
1131
|
+
skipped: skip
|
|
1121
1132
|
});
|
|
1122
1133
|
if (type === "Hook" && hookName) {
|
|
1123
1134
|
afterArgs.push(hookName);
|
|
@@ -1304,7 +1315,7 @@ function isFirefox(capabilities) {
|
|
|
1304
1315
|
return capabilities.browserName === "firefox" || Boolean(Object.keys(capabilities).find((cap) => cap.startsWith("moz:")));
|
|
1305
1316
|
}
|
|
1306
1317
|
function getAutomationName(capabilities) {
|
|
1307
|
-
return capabilities["appium:options"]?.automationName || capabilities["appium:automationName"];
|
|
1318
|
+
return capabilities["appium:options"]?.automationName || capabilities["appium:automationName"] || capabilities["automationName"];
|
|
1308
1319
|
}
|
|
1309
1320
|
function isMobile(capabilities) {
|
|
1310
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"}
|
|
@@ -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/build/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAepD,wBAAgB,UAAU,CAAC,C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.
|
|
3
|
+
"version": "9.12.6",
|
|
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.12.
|
|
42
|
+
"@wdio/types": "9.12.6",
|
|
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": "a5811faee284a67819b8f979f6e32eb6c9752046"
|
|
58
58
|
}
|