@wdio/runner 8.2.3 → 8.2.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.
- package/build/browser.d.ts.map +1 -1
- package/build/browser.js +7 -2
- package/package.json +4 -4
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;AAID,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;
|
|
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;AAID,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;IAgJT,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
|
@@ -50,6 +50,7 @@ export default class BrowserFramework {
|
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
async #loop() {
|
|
53
|
+
const timeout = this._config.mochaOpts.timeout;
|
|
53
54
|
/**
|
|
54
55
|
* start tests
|
|
55
56
|
*/
|
|
@@ -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) > 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
|
|
105
110
|
});
|
|
106
111
|
if (state.errors?.length) {
|
|
107
112
|
const errors = state.errors.map((ev) => state.hasViteError
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/runner",
|
|
3
|
-
"version": "8.2.
|
|
3
|
+
"version": "8.2.6",
|
|
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",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@types/node": "^18.0.0",
|
|
30
30
|
"@wdio/config": "8.2.3",
|
|
31
|
-
"@wdio/globals": "8.2.
|
|
31
|
+
"@wdio/globals": "8.2.6",
|
|
32
32
|
"@wdio/logger": "8.1.0",
|
|
33
33
|
"@wdio/types": "8.1.2",
|
|
34
34
|
"@wdio/utils": "8.2.3",
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"expect-webdriverio": "^4.0.1",
|
|
37
37
|
"gaze": "^1.1.2",
|
|
38
38
|
"webdriver": "8.2.3",
|
|
39
|
-
"webdriverio": "8.2.
|
|
39
|
+
"webdriverio": "8.2.6"
|
|
40
40
|
},
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "82c01b9fcf03c477505fd3afed777ce7b227567b"
|
|
45
45
|
}
|