@wdio/runner 9.27.0 → 9.27.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 +13 -6
- package/build/types.d.ts +11 -0
- package/build/types.d.ts.map +1 -1
- 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,
|
|
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,EAGxE,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;IAoOpE;;;;;;OAMG;YACW,YAAY;IAoC1B;;;;;OAKG;YACW,aAAa;IAgF3B;;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
|
@@ -705,6 +705,7 @@ var Runner = class extends EventEmitter {
|
|
|
705
705
|
if (!browser2) {
|
|
706
706
|
const afterArgs = [1, this._caps, this._specs];
|
|
707
707
|
await executeHooksWithArgs2("after", this._config.after, afterArgs);
|
|
708
|
+
await this.endSession();
|
|
708
709
|
return this._shutdown(1, retries, true);
|
|
709
710
|
}
|
|
710
711
|
this._reporter.caps = browser2.capabilities;
|
|
@@ -825,19 +826,25 @@ var Runner = class extends EventEmitter {
|
|
|
825
826
|
try {
|
|
826
827
|
const customStubCommands = this._browser?.customCommands || [];
|
|
827
828
|
const overwrittenCommands = this._browser?.overwrittenCommands || [];
|
|
828
|
-
|
|
829
|
+
const browser2 = await initializeInstance(config, caps, this._isMultiremote);
|
|
830
|
+
this._browser = browser2;
|
|
829
831
|
_setGlobal("browser", this._browser, config.injectGlobals);
|
|
830
832
|
_setGlobal("driver", this._browser, config.injectGlobals);
|
|
831
833
|
if (config.framework !== "jasmine") {
|
|
832
834
|
_setGlobal("expect", expect2, config.injectGlobals);
|
|
833
835
|
}
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
836
|
+
const commandTarget = browser2;
|
|
837
|
+
for (const [name, func, thirdArg, proto, instances] of customStubCommands) {
|
|
838
|
+
if (typeof thirdArg === "object" && thirdArg !== null) {
|
|
839
|
+
commandTarget.addCommand(name, func, thirdArg);
|
|
840
|
+
} else if (typeof thirdArg === "boolean") {
|
|
841
|
+
commandTarget.addCommand(name, func, thirdArg, proto, instances);
|
|
842
|
+
} else {
|
|
843
|
+
commandTarget.addCommand(name, func);
|
|
844
|
+
}
|
|
838
845
|
}
|
|
839
846
|
for (const params of overwrittenCommands) {
|
|
840
|
-
|
|
847
|
+
browser2.overwriteCommand(...params);
|
|
841
848
|
}
|
|
842
849
|
setOptions({
|
|
843
850
|
wait: config.waitforTimeout,
|
package/build/types.d.ts
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
import type { Capabilities, Services, Workers } from '@wdio/types';
|
|
2
2
|
import type { getConfig, matchers } from 'expect-webdriverio';
|
|
3
|
+
import type { AddCommandFunction, CustomCommandOptions, Instances } from 'webdriverio';
|
|
3
4
|
import type BaseReporter from './reporter.js';
|
|
5
|
+
/**
|
|
6
|
+
* Represents a custom command stored by the protocol stub before the session starts.
|
|
7
|
+
* Supports both:
|
|
8
|
+
* - options object format: [name, fn, CustomCommandOptions]
|
|
9
|
+
* - deprecated positional format: [name, fn, attachToElement, proto?, instances?]
|
|
10
|
+
*/
|
|
11
|
+
export type CustomStubCommand = CustomStubCommandWithOptions | LegacyCustomStubCommand;
|
|
12
|
+
export type CustomStubCommandWithOptions = [string, AddCommandFunction<boolean>, CustomCommandOptions<boolean>];
|
|
13
|
+
/** @deprecated use CustomStubCommandWithOptions, to remove in v10 */
|
|
14
|
+
export type LegacyCustomStubCommand = [string, AddCommandFunction<boolean>, boolean?, Record<string, unknown>?, Record<string, Instances>?];
|
|
4
15
|
export type BeforeArgs = Parameters<Required<Services.HookFunctions>['before']>;
|
|
5
16
|
export type AfterArgs = Parameters<Required<Services.HookFunctions>['after']>;
|
|
6
17
|
export type BeforeSessionArgs = Parameters<Required<Services.HookFunctions>['beforeSession']>;
|
package/build/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAClE,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA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AAa,EAAE,OAAO,CAAA;QACtB,aAAa,EAAE,OAAO,CAAA;QACtB,YAAY,EAAE,WAAW,CAAC,YAAY,CAAA;KACzC,CAAC;IACF,GAAG,CAAC,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,qBAAqB;IAClC,MAAM,EAAE,QAAQ,CAAA;IAChB,IAAI,EAAE,UAAU,CAAA;IAChB,OAAO,EAAE;QACL,QAAQ,EAAE,MAAM,CAAA;QAChB,KAAK,EAAE,MAAM,CAAA;QACb,WAAW,EAAE,OAAO,CAAA;QACpB,OAAO,EAAE,MAAM,CAAA;QACf,SAAS,EAAE,MAAM,CAAA;QACjB,aAAa,EAAE,MAAM,EAAE,CAAA;QACvB,SAAS,EAAE,MAAM,CAAA;QACjB,OAAO,EAAE,MAAM,CAAA;KAClB,EAAE,CAAA;CACN;AAED,MAAM,WAAW,mBAAmB;IAChC,MAAM,EAAE,QAAQ,CAAA;IAChB,IAAI,EAAE,cAAc,CAAC;IACrB,GAAG,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,qBAAqB;IAClC,MAAM,EAAE,QAAQ,CAAA;IAChB,IAAI,EAAE,gBAAgB,CAAC;IACvB,IAAI,EAAE;QACF,EAAE,EAAE,MAAM,CAAA;QACV,OAAO,EAAE,OAAO,CAAC,aAAa,CAAA;KACjC,CAAA;CACJ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/runner",
|
|
3
|
-
"version": "9.27.
|
|
3
|
+
"version": "9.27.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.27.
|
|
36
|
-
"@wdio/dot-reporter": "9.27.
|
|
37
|
-
"@wdio/globals": "9.27.
|
|
35
|
+
"@wdio/config": "9.27.1",
|
|
36
|
+
"@wdio/dot-reporter": "9.27.1",
|
|
37
|
+
"@wdio/globals": "9.27.1",
|
|
38
38
|
"@wdio/logger": "9.18.0",
|
|
39
|
-
"@wdio/types": "9.27.
|
|
40
|
-
"@wdio/utils": "9.27.
|
|
39
|
+
"@wdio/types": "9.27.1",
|
|
40
|
+
"@wdio/utils": "9.27.1",
|
|
41
41
|
"deepmerge-ts": "^7.0.3",
|
|
42
|
-
"webdriver": "9.27.
|
|
43
|
-
"webdriverio": "9.27.
|
|
42
|
+
"webdriver": "9.27.1",
|
|
43
|
+
"webdriverio": "9.27.1"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"expect-webdriverio": "^5.6.5",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"publishConfig": {
|
|
58
58
|
"access": "public"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "e2b5652f61da0858251860e7d3bc0c0aaffbb525"
|
|
61
61
|
}
|