@wdio/runner 9.22.0 → 9.23.1
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/index.d.ts.map +1 -1
- package/build/index.js +11 -9
- package/package.json +9 -9
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAc1C,OAAO,KAAK,EACoD,SAAS,EAExE,MAAM,YAAY,CAAA;AAInB,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,YAAY;;IAC5C,OAAO,CAAC,QAAQ,CAAC,CAAsD;IACvE,OAAO,CAAC,aAAa,CAAC,CAAc;IACpC,OAAO,CAAC,gBAAgB,CAAQ;IAChC,OAAO,CAAC,cAAc,CAAQ;IAC9B,OAAO,CAAC,sBAAsB,CAAI;IAElC,OAAO,CAAC,SAAS,CAAC,CAAc;IAChC,OAAO,CAAC,UAAU,CAAC,CAAe;IAClC,OAAO,CAAC,OAAO,CAAC,CAAoB;IACpC,OAAO,CAAC,IAAI,CAAC,CAAQ;IACrB,OAAO,CAAC,MAAM,CAAC,CAAU;IACzB,OAAO,CAAC,KAAK,CAAC,CAA8F;IAC5G,OAAO,CAAC,iBAAiB,CAAC,CAAO;IAEjC;;;;;;;;;OASG;IACG,GAAG,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,SAAS;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAc1C,OAAO,KAAK,EACoD,SAAS,EAExE,MAAM,YAAY,CAAA;AAInB,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,YAAY;;IAC5C,OAAO,CAAC,QAAQ,CAAC,CAAsD;IACvE,OAAO,CAAC,aAAa,CAAC,CAAc;IACpC,OAAO,CAAC,gBAAgB,CAAQ;IAChC,OAAO,CAAC,cAAc,CAAQ;IAC9B,OAAO,CAAC,sBAAsB,CAAI;IAElC,OAAO,CAAC,SAAS,CAAC,CAAc;IAChC,OAAO,CAAC,UAAU,CAAC,CAAe;IAClC,OAAO,CAAC,OAAO,CAAC,CAAoB;IACpC,OAAO,CAAC,IAAI,CAAC,CAAQ;IACrB,OAAO,CAAC,MAAM,CAAC,CAAU;IACzB,OAAO,CAAC,KAAK,CAAC,CAA8F;IAC5G,OAAO,CAAC,iBAAiB,CAAC,CAAO;IAEjC;;;;;;;;;OASG;IACG,GAAG,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,SAAS;IAmOpE;;;;;;OAMG;YACW,YAAY;IAoC1B;;;;;OAKG;YACW,aAAa;IA0E3B;;OAEG;YACW,SAAS;IAoCvB;;;OAGG;IACG,UAAU,CAAC,OAAO,CAAC,EAAE,GAAG;CAwEjC;AAED,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,eAAe,CAAA;AACvD,cAAc,YAAY,CAAA"}
|
package/build/index.js
CHANGED
|
@@ -653,7 +653,6 @@ var Runner = class extends EventEmitter {
|
|
|
653
653
|
return this._shutdown(1, retries, true);
|
|
654
654
|
}
|
|
655
655
|
this._config = this._configParser.getConfig();
|
|
656
|
-
this._specFileRetryAttempts = (this._config.specFileRetries || 0) - (retries || 0);
|
|
657
656
|
logger4.setLogLevelsConfig(this._config.logLevels, this._config.logLevel);
|
|
658
657
|
if (this._config.maskingPatterns) {
|
|
659
658
|
logger4.setMaskingPatterns(this._config.maskingPatterns);
|
|
@@ -693,6 +692,7 @@ var Runner = class extends EventEmitter {
|
|
|
693
692
|
)).map(this._configParser.addService.bind(this._configParser));
|
|
694
693
|
const beforeSessionParams = [this._config, this._caps, this._specs, this._cid];
|
|
695
694
|
await executeHooksWithArgs2("beforeSession", this._config.beforeSession, beforeSessionParams);
|
|
695
|
+
this._specFileRetryAttempts = (this._config.specFileRetries || 0) - (retries || 0);
|
|
696
696
|
this._reporter = new BaseReporter(this._config, this._cid, { ...this._caps });
|
|
697
697
|
await this._reporter.initReporters();
|
|
698
698
|
this._framework = await this.#initFramework(cid, this._config, this._caps, this._reporter, specs);
|
|
@@ -740,6 +740,7 @@ var Runner = class extends EventEmitter {
|
|
|
740
740
|
process.send({
|
|
741
741
|
origin: "worker",
|
|
742
742
|
name: "sessionStarted",
|
|
743
|
+
specFileRetries: this._specFileRetryAttempts,
|
|
743
744
|
content: {
|
|
744
745
|
automationProtocol,
|
|
745
746
|
sessionId,
|
|
@@ -857,6 +858,7 @@ var Runner = class extends EventEmitter {
|
|
|
857
858
|
});
|
|
858
859
|
if (this._isMultiremote) {
|
|
859
860
|
_setGlobal("multiremotebrowser", this._browser, config.injectGlobals);
|
|
861
|
+
_setGlobal("multiRemoteBrowser", this._browser, config.injectGlobals);
|
|
860
862
|
}
|
|
861
863
|
} catch (error) {
|
|
862
864
|
log4.error(error);
|
|
@@ -899,10 +901,10 @@ var Runner = class extends EventEmitter {
|
|
|
899
901
|
* within a hook by the user
|
|
900
902
|
*/
|
|
901
903
|
async endSession(payload) {
|
|
902
|
-
const
|
|
904
|
+
const multiRemoteBrowser = this._browser;
|
|
903
905
|
const browser2 = this._browser;
|
|
904
|
-
const hasSessionId = Boolean(this._browser) && (this._isMultiremote ? !
|
|
905
|
-
(browserName) =>
|
|
906
|
+
const hasSessionId = Boolean(this._browser) && (this._isMultiremote ? !multiRemoteBrowser.instances.some(
|
|
907
|
+
(browserName) => multiRemoteBrowser.getInstance(browserName) && !multiRemoteBrowser.getInstance(browserName).sessionId
|
|
906
908
|
) : browser2.sessionId);
|
|
907
909
|
if (!hasSessionId && payload?.args.config.sessionId) {
|
|
908
910
|
this._browser = await attach2({
|
|
@@ -914,9 +916,9 @@ var Runner = class extends EventEmitter {
|
|
|
914
916
|
}
|
|
915
917
|
const capabilities = this._browser?.capabilities || {};
|
|
916
918
|
if (this._isMultiremote) {
|
|
917
|
-
const
|
|
918
|
-
|
|
919
|
-
capabilities[browserName] =
|
|
919
|
+
const multiRemoteBrowser2 = this._browser;
|
|
920
|
+
multiRemoteBrowser2.instances.forEach((browserName) => {
|
|
921
|
+
capabilities[browserName] = multiRemoteBrowser2.getInstance(browserName).capabilities;
|
|
920
922
|
});
|
|
921
923
|
}
|
|
922
924
|
await this._browser?.deleteSession();
|
|
@@ -926,8 +928,8 @@ var Runner = class extends EventEmitter {
|
|
|
926
928
|
cid: this._cid
|
|
927
929
|
});
|
|
928
930
|
if (this._isMultiremote) {
|
|
929
|
-
|
|
930
|
-
delete
|
|
931
|
+
multiRemoteBrowser.instances.forEach((browserName) => {
|
|
932
|
+
delete multiRemoteBrowser.getInstance(browserName).sessionId;
|
|
931
933
|
});
|
|
932
934
|
} else if (browser2) {
|
|
933
935
|
browser2.sessionId = void 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/runner",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.23.1",
|
|
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",
|
|
@@ -32,15 +32,15 @@
|
|
|
32
32
|
"typeScriptVersion": "3.8.3",
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@types/node": "^20.11.28",
|
|
35
|
-
"@wdio/config": "9.
|
|
36
|
-
"@wdio/dot-reporter": "9.
|
|
37
|
-
"@wdio/globals": "9.
|
|
35
|
+
"@wdio/config": "9.23.1",
|
|
36
|
+
"@wdio/dot-reporter": "9.23.1",
|
|
37
|
+
"@wdio/globals": "9.23.0",
|
|
38
38
|
"@wdio/logger": "9.18.0",
|
|
39
|
-
"@wdio/types": "9.
|
|
40
|
-
"@wdio/utils": "9.
|
|
39
|
+
"@wdio/types": "9.23.1",
|
|
40
|
+
"@wdio/utils": "9.23.1",
|
|
41
41
|
"deepmerge-ts": "^7.0.3",
|
|
42
|
-
"webdriver": "9.
|
|
43
|
-
"webdriverio": "9.
|
|
42
|
+
"webdriver": "9.23.1",
|
|
43
|
+
"webdriverio": "9.23.1"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"expect-webdriverio": "^5.3.4",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"publishConfig": {
|
|
58
58
|
"access": "public"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "19ac2c1dd86f3bdd967bc6c22c5bcdd78907b988"
|
|
61
61
|
}
|