@wdio/runner 8.2.2 → 8.2.4
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.d.ts.map +1 -1
- package/build/browser.js +7 -2
- package/build/index.d.ts +1 -1
- package/build/index.js +1 -1
- package/package.json +7 -7
package/build/browser.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAW,OAAO,EAAY,MAAM,aAAa,CAAA;AAE3E,OAAO,KAAK,YAAY,MAAM,eAAe,CAAA;AAC7C,OAAO,KAAK,EAAE,aAAa,EAA6C,MAAM,YAAY,CAAA;AAK1F,KAAK,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,UAAU,GAAG,SAAS,CAAC,CAAC,GAAG;IAAE,YAAY,CAAC,EAAE,OAAO,CAAA;CAAE,CAAA;AAOpG,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,MAAM;QACZ,cAAc,EAAE,cAAc,EAAE,CAAA;QAChC,cAAc,EAAE,GAAG,EAAE,CAAA;QACrB,gBAAgB,EAAE,MAAM,CAAA;KAC3B;CACJ;
|
|
1
|
+
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAW,OAAO,EAAY,MAAM,aAAa,CAAA;AAE3E,OAAO,KAAK,YAAY,MAAM,eAAe,CAAA;AAC7C,OAAO,KAAK,EAAE,aAAa,EAA6C,MAAM,YAAY,CAAA;AAK1F,KAAK,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,UAAU,GAAG,SAAS,CAAC,CAAC,GAAG;IAAE,YAAY,CAAC,EAAE,OAAO,CAAA;CAAE,CAAA;AAOpG,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,MAAM;QACZ,cAAc,EAAE,cAAc,EAAE,CAAA;QAChC,cAAc,EAAE,GAAG,EAAE,CAAA;QACrB,gBAAgB,EAAE,MAAM,CAAA;KAC3B;CACJ;AAKD,MAAM,CAAC,OAAO,OAAO,gBAAiB,YAAW,IAAI,CAAC,aAAa,EAAE,MAAM,CAAC;;IAIpE,OAAO,CAAC,IAAI;IACZ,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,MAAM;IACd,OAAO,CAAC,aAAa;IACrB,OAAO,CAAC,SAAS;gBAJT,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,OAAO,CAAC,UAAU,GAAG;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,EACpD,MAAM,EAAE,MAAM,EAAE,EAChB,aAAa,EAAE,YAAY,CAAC,gBAAgB,EAC5C,SAAS,EAAE,YAAY;IAMnC;;OAEG;IACH,QAAQ;IAIR,IAAI;IAIE,GAAG;IA+IT,MAAM,CAAC,IAAI,CAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,YAAY,CAAC,gBAAgB,EAAE,QAAQ,EAAE,YAAY;CAItH"}
|
package/build/browser.js
CHANGED
|
@@ -6,6 +6,7 @@ import { executeHooksWithArgs } from '@wdio/utils';
|
|
|
6
6
|
const log = logger('@wdio/runner');
|
|
7
7
|
const sep = '\n - ';
|
|
8
8
|
const sleep = (ms = 100) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
9
|
+
const TEST_TIMEOUT = 15 * 1000;
|
|
9
10
|
export default class BrowserFramework {
|
|
10
11
|
_cid;
|
|
11
12
|
_config;
|
|
@@ -63,15 +64,19 @@ export default class BrowserFramework {
|
|
|
63
64
|
* is no need to call the url command again
|
|
64
65
|
*/
|
|
65
66
|
if (!this._config.sessionId) {
|
|
66
|
-
await browser.url(`/${this._cid}/test.html?spec=${url.
|
|
67
|
+
await browser.url(`/${this._cid}/test.html?spec=${url.parse(spec).pathname}`);
|
|
67
68
|
}
|
|
68
69
|
// await browser.debug()
|
|
69
70
|
/**
|
|
70
71
|
* wait for test results or page errors
|
|
71
72
|
*/
|
|
72
73
|
let state = {};
|
|
74
|
+
const now = Date.now();
|
|
73
75
|
await browser.waitUntil(async () => {
|
|
74
76
|
while (typeof state.failures !== 'number' && (!state.errors || state.errors.length === 0)) {
|
|
77
|
+
if ((Date.now() - now) > TEST_TIMEOUT) {
|
|
78
|
+
return false;
|
|
79
|
+
}
|
|
75
80
|
await sleep();
|
|
76
81
|
/**
|
|
77
82
|
* don't fetch events if user has called debug command
|
|
@@ -101,7 +106,7 @@ export default class BrowserFramework {
|
|
|
101
106
|
return true;
|
|
102
107
|
}, {
|
|
103
108
|
timeoutMsg: 'browser test timed out',
|
|
104
|
-
timeout:
|
|
109
|
+
timeout: TEST_TIMEOUT
|
|
105
110
|
});
|
|
106
111
|
if (state.errors?.length) {
|
|
107
112
|
const errors = state.errors.map((ev) => state.hasViteError
|
package/build/index.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export default class Runner extends EventEmitter {
|
|
|
20
20
|
* @param {Object} args config arguments passed into worker process
|
|
21
21
|
* @param {String[]} specs list of spec files to run
|
|
22
22
|
* @param {Object} caps capabilities to run session with
|
|
23
|
-
* @param {String} configFile
|
|
23
|
+
* @param {String} configFile path to config file to get config from
|
|
24
24
|
* @param {Number} retries number of retries remaining
|
|
25
25
|
* @return {Promise} resolves in number of failures for testrun
|
|
26
26
|
*/
|
package/build/index.js
CHANGED
|
@@ -29,7 +29,7 @@ export default class Runner extends EventEmitter {
|
|
|
29
29
|
* @param {Object} args config arguments passed into worker process
|
|
30
30
|
* @param {String[]} specs list of spec files to run
|
|
31
31
|
* @param {Object} caps capabilities to run session with
|
|
32
|
-
* @param {String} configFile
|
|
32
|
+
* @param {String} configFile path to config file to get config from
|
|
33
33
|
* @param {Number} retries number of retries remaining
|
|
34
34
|
* @return {Promise} resolves in number of failures for testrun
|
|
35
35
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/runner",
|
|
3
|
-
"version": "8.2.
|
|
3
|
+
"version": "8.2.4",
|
|
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",
|
|
@@ -27,19 +27,19 @@
|
|
|
27
27
|
"typeScriptVersion": "3.8.3",
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@types/node": "^18.0.0",
|
|
30
|
-
"@wdio/config": "8.2.
|
|
31
|
-
"@wdio/globals": "8.2.
|
|
30
|
+
"@wdio/config": "8.2.3",
|
|
31
|
+
"@wdio/globals": "8.2.4",
|
|
32
32
|
"@wdio/logger": "8.1.0",
|
|
33
33
|
"@wdio/types": "8.1.2",
|
|
34
|
-
"@wdio/utils": "8.2.
|
|
34
|
+
"@wdio/utils": "8.2.3",
|
|
35
35
|
"deepmerge-ts": "^4.2.2",
|
|
36
36
|
"expect-webdriverio": "^4.0.1",
|
|
37
37
|
"gaze": "^1.1.2",
|
|
38
|
-
"webdriver": "8.2.
|
|
39
|
-
"webdriverio": "8.2.
|
|
38
|
+
"webdriver": "8.2.3",
|
|
39
|
+
"webdriverio": "8.2.4"
|
|
40
40
|
},
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "eba541a77dbc42173717e1c106a7c4d3ccb198f5"
|
|
45
45
|
}
|