@wdio/runner 8.29.2 → 8.29.5
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 +8 -9
- 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":"AAOA,OAAO,EAAE,KAAK,YAAY,EAAgB,KAAK,OAAO,EAAgC,MAAM,aAAa,CAAA;AAGzG,OAAO,KAAK,YAAY,MAAM,eAAe,CAAA;AAC7C,OAAO,KAAK,EAAE,aAAa,EAAyB,MAAM,YAAY,CAAA;AAOtE,KAAK,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,UAAU,GAAG,SAAS,GAAG,OAAO,CAAC,CAAC,GAAG;IAAE,YAAY,CAAC,EAAE,OAAO,CAAA;CAAE,CAAA;AAQ9G,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,MAAM;QACZ,cAAc,EAAE,cAAc,EAAE,CAAA;QAChC,cAAc,EAAE,GAAG,EAAE,CAAA;QACrB,gBAAgB,EAAE,MAAM,CAAA;QACxB,YAAY,CAAC,EAAE,OAAO,CAAA;KACzB;CACJ;AAED,MAAM,CAAC,OAAO,OAAO,gBAAiB,YAAW,IAAI,CAAC,aAAa,EAAE,MAAM,CAAC;;
|
|
1
|
+
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,YAAY,EAAgB,KAAK,OAAO,EAAgC,MAAM,aAAa,CAAA;AAGzG,OAAO,KAAK,YAAY,MAAM,eAAe,CAAA;AAC7C,OAAO,KAAK,EAAE,aAAa,EAAyB,MAAM,YAAY,CAAA;AAOtE,KAAK,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,UAAU,GAAG,SAAS,GAAG,OAAO,CAAC,CAAC,GAAG;IAAE,YAAY,CAAC,EAAE,OAAO,CAAA;CAAE,CAAA;AAQ9G,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,MAAM;QACZ,cAAc,EAAE,cAAc,EAAE,CAAA;QAChC,cAAc,EAAE,GAAG,EAAE,CAAA;QACrB,gBAAgB,EAAE,MAAM,CAAA;QACxB,YAAY,CAAC,EAAE,OAAO,CAAA;KACzB;CACJ;AAED,MAAM,CAAC,OAAO,OAAO,gBAAiB,YAAW,IAAI,CAAC,aAAa,EAAE,MAAM,CAAC;;IAKpE,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;IASnC;;OAEG;IACH,QAAQ;IAIR,IAAI;IAIE,GAAG;IAkWT,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
|
@@ -17,7 +17,6 @@ export default class BrowserFramework {
|
|
|
17
17
|
_capabilities;
|
|
18
18
|
_reporter;
|
|
19
19
|
#runnerOptions; // `any` here because we don't want to create a dependency to @wdio/browser-runner
|
|
20
|
-
#testStatePromise;
|
|
21
20
|
#resolveTestStatePromise;
|
|
22
21
|
constructor(_cid, _config, _specs, _capabilities, _reporter) {
|
|
23
22
|
this._cid = _cid;
|
|
@@ -29,13 +28,6 @@ export default class BrowserFramework {
|
|
|
29
28
|
process.on('message', this.#processMessage.bind(this));
|
|
30
29
|
const [, runnerOptions] = Array.isArray(_config.runner) ? _config.runner : [];
|
|
31
30
|
this.#runnerOptions = runnerOptions || {};
|
|
32
|
-
/**
|
|
33
|
-
* create promise to resolve test state which is being sent through the socket
|
|
34
|
-
* connection from the browser through the main process to the worker
|
|
35
|
-
*/
|
|
36
|
-
this.#testStatePromise = new Promise((resolve) => {
|
|
37
|
-
this.#resolveTestStatePromise = resolve;
|
|
38
|
-
});
|
|
39
31
|
}
|
|
40
32
|
/**
|
|
41
33
|
* always return true as it is irrelevant for component testing
|
|
@@ -77,6 +69,13 @@ export default class BrowserFramework {
|
|
|
77
69
|
async #runSpec(spec, retried = false) {
|
|
78
70
|
const timeout = this._config.mochaOpts?.timeout || DEFAULT_TIMEOUT;
|
|
79
71
|
log.info(`Run spec file ${spec} for cid ${this._cid}`);
|
|
72
|
+
/**
|
|
73
|
+
* create promise to resolve test state which is being sent through the socket
|
|
74
|
+
* connection from the browser through the main process to the worker
|
|
75
|
+
*/
|
|
76
|
+
const testStatePromise = new Promise((resolve) => {
|
|
77
|
+
this.#resolveTestStatePromise = resolve;
|
|
78
|
+
});
|
|
80
79
|
/**
|
|
81
80
|
* if a `sessionId` is part of `this._config` it means we are in watch mode and are
|
|
82
81
|
* re-using a previous session. Since Vite has already a hot-reload feature, there
|
|
@@ -102,7 +101,7 @@ export default class BrowserFramework {
|
|
|
102
101
|
* run checks for errors here to avoid breakage in communication with the browser
|
|
103
102
|
*/
|
|
104
103
|
const errorInterval = setInterval(this.#checkForTestError.bind(this), ERROR_CHECK_INTERVAL);
|
|
105
|
-
const state = await
|
|
104
|
+
const state = await testStatePromise;
|
|
106
105
|
clearTimeout(testTimeout);
|
|
107
106
|
clearInterval(errorInterval);
|
|
108
107
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/runner",
|
|
3
|
-
"version": "8.29.
|
|
3
|
+
"version": "8.29.5",
|
|
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",
|
|
@@ -30,19 +30,19 @@
|
|
|
30
30
|
"typeScriptVersion": "3.8.3",
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@types/node": "^20.1.0",
|
|
33
|
-
"@wdio/config": "8.29.
|
|
34
|
-
"@wdio/globals": "8.29.
|
|
33
|
+
"@wdio/config": "8.29.3",
|
|
34
|
+
"@wdio/globals": "8.29.3",
|
|
35
35
|
"@wdio/logger": "8.28.0",
|
|
36
36
|
"@wdio/types": "8.29.1",
|
|
37
|
-
"@wdio/utils": "8.29.
|
|
37
|
+
"@wdio/utils": "8.29.3",
|
|
38
38
|
"deepmerge-ts": "^5.0.0",
|
|
39
39
|
"expect-webdriverio": "^4.9.3",
|
|
40
40
|
"gaze": "^1.1.2",
|
|
41
|
-
"webdriver": "8.29.
|
|
42
|
-
"webdriverio": "8.29.
|
|
41
|
+
"webdriver": "8.29.3",
|
|
42
|
+
"webdriverio": "8.29.3"
|
|
43
43
|
},
|
|
44
44
|
"publishConfig": {
|
|
45
45
|
"access": "public"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "35c91fce089a8aff2dc3ec1407d6b91bc5cf0c76"
|
|
48
48
|
}
|