@wdio/runner 9.0.0-alpha.0 → 9.0.0-alpha.113
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/browser.js +6 -6
- package/build/utils.d.ts.map +1 -1
- package/build/utils.js +2 -7
- package/package.json +13 -13
package/build/browser.js
CHANGED
|
@@ -236,12 +236,6 @@ export default class BrowserFramework {
|
|
|
236
236
|
return this.#sendWorkerResponse(id, this.#commandResponse({ id: payload.id, error }));
|
|
237
237
|
}
|
|
238
238
|
try {
|
|
239
|
-
/**
|
|
240
|
-
* double check if function is registered
|
|
241
|
-
*/
|
|
242
|
-
if (typeof browser[payload.commandName] !== 'function') {
|
|
243
|
-
throw new Error(`browser.${payload.commandName} is not a function`);
|
|
244
|
-
}
|
|
245
239
|
/**
|
|
246
240
|
* user either the browser instance or an element based on whether or not
|
|
247
241
|
* a scope property was passed in
|
|
@@ -249,6 +243,12 @@ export default class BrowserFramework {
|
|
|
249
243
|
const scope = payload.scope
|
|
250
244
|
? await browser.$({ [ELEMENT_KEY]: payload.scope })
|
|
251
245
|
: browser;
|
|
246
|
+
/**
|
|
247
|
+
* double check if function is registered
|
|
248
|
+
*/
|
|
249
|
+
if (typeof scope[payload.commandName] !== 'function') {
|
|
250
|
+
throw new Error(`${payload.scope ? 'element' : 'browser'}.${payload.commandName} is not a function`);
|
|
251
|
+
}
|
|
252
252
|
let result = await scope[payload.commandName](...payload.args);
|
|
253
253
|
/**
|
|
254
254
|
* if result is an element, transform it into an element reference
|
package/build/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAKxD,MAAM,WAAW,m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
2
|
import logger from '@wdio/logger';
|
|
4
3
|
import { remote, multiremote, attach } from 'webdriverio';
|
|
5
4
|
import { DEFAULTS } from 'webdriver';
|
|
6
5
|
import { DEFAULT_CONFIGS } from '@wdio/config';
|
|
6
|
+
import { enableFileLogging } from '@wdio/utils';
|
|
7
7
|
const log = logger('@wdio/runner');
|
|
8
8
|
/**
|
|
9
9
|
* sanitizes wdio config from capability properties
|
|
@@ -34,12 +34,7 @@ export function sanitizeCaps(caps, filterOut) {
|
|
|
34
34
|
* @return {Promise} resolves with browser object
|
|
35
35
|
*/
|
|
36
36
|
export async function initializeInstance(config, capabilities, isMultiremote) {
|
|
37
|
-
|
|
38
|
-
* Store all log events in a file
|
|
39
|
-
*/
|
|
40
|
-
if (config.outputDir && !process.env.WDIO_LOG_PATH) {
|
|
41
|
-
process.env.WDIO_LOG_PATH = path.join(config.outputDir, 'wdio.log');
|
|
42
|
-
}
|
|
37
|
+
await enableFileLogging(config.outputDir);
|
|
43
38
|
/**
|
|
44
39
|
* check if config has sessionId and attach it to a running session if so
|
|
45
40
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/runner",
|
|
3
|
-
"version": "9.0.0-alpha.
|
|
3
|
+
"version": "9.0.0-alpha.113+ceeac488e",
|
|
4
4
|
"description": "A WebdriverIO service that runs tests in arbitrary environments",
|
|
5
5
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-runner",
|
|
@@ -29,20 +29,20 @@
|
|
|
29
29
|
},
|
|
30
30
|
"typeScriptVersion": "3.8.3",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@types/node": "^20.
|
|
33
|
-
"@wdio/config": "9.0.0-alpha.
|
|
34
|
-
"@wdio/globals": "9.0.0-alpha.
|
|
35
|
-
"@wdio/logger": "9.0.0-alpha.
|
|
36
|
-
"@wdio/types": "9.0.0-alpha.
|
|
37
|
-
"@wdio/utils": "9.0.0-alpha.
|
|
38
|
-
"deepmerge-ts": "^5.
|
|
39
|
-
"expect-webdriverio": "^4.
|
|
40
|
-
"gaze": "^1.1.
|
|
41
|
-
"webdriver": "9.0.0-alpha.
|
|
42
|
-
"webdriverio": "9.0.0-alpha.
|
|
32
|
+
"@types/node": "^20.11.28",
|
|
33
|
+
"@wdio/config": "9.0.0-alpha.113+ceeac488e",
|
|
34
|
+
"@wdio/globals": "9.0.0-alpha.113+ceeac488e",
|
|
35
|
+
"@wdio/logger": "9.0.0-alpha.113+ceeac488e",
|
|
36
|
+
"@wdio/types": "9.0.0-alpha.113+ceeac488e",
|
|
37
|
+
"@wdio/utils": "9.0.0-alpha.113+ceeac488e",
|
|
38
|
+
"deepmerge-ts": "^5.1.0",
|
|
39
|
+
"expect-webdriverio": "^4.12.0",
|
|
40
|
+
"gaze": "^1.1.3",
|
|
41
|
+
"webdriver": "9.0.0-alpha.113+ceeac488e",
|
|
42
|
+
"webdriverio": "9.0.0-alpha.113+ceeac488e"
|
|
43
43
|
},
|
|
44
44
|
"publishConfig": {
|
|
45
45
|
"access": "public"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "ceeac488e86da4d6ffad891632183085e4332be7"
|
|
48
48
|
}
|