@wdio/browser-runner 9.12.0 → 9.12.2
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/driver.d.ts.map +1 -1
- package/build/browser/driver.js +5 -4
- package/package.json +11 -11
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"driver.d.ts","sourceRoot":"","sources":["../../src/browser/driver.ts"],"names":[],"mappings":"AA+BA,MAAM,CAAC,OAAO,OAAO,WAAW;;WAGf,UAAU,CACnB,MAAM,EAAE,GAAG,EACX,QAAQ,EAAE,KAAK,EACf,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,EACjD,cAAc,EAAE,GAAG;
|
|
1
|
+
{"version":3,"file":"driver.d.ts","sourceRoot":"","sources":["../../src/browser/driver.ts"],"names":[],"mappings":"AA+BA,MAAM,CAAC,OAAO,OAAO,WAAW;;WAGf,UAAU,CACnB,MAAM,EAAE,GAAG,EACX,QAAQ,EAAE,KAAK,EACf,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,EACjD,cAAc,EAAE,GAAG;CAiQ1B"}
|
package/build/browser/driver.js
CHANGED
|
@@ -71,7 +71,7 @@ var browser;
|
|
|
71
71
|
var _commandMessages, _ProxyDriver_static, getMockedCommand_fn, handleServerMessage_fn, handleCommandResponse_fn, handleBrowserInitiation_fn, wrapConsolePrototype_fn, commandRequest_fn, consoleMessage_fn;
|
|
72
72
|
var ProxyDriver = class {
|
|
73
73
|
static async newSession(params, modifier, userPrototype, commandWrapper) {
|
|
74
|
-
var _a, _b, _c;
|
|
74
|
+
var _a, _b, _c, _d;
|
|
75
75
|
const cid = getCID();
|
|
76
76
|
__privateMethod(this, _ProxyDriver_static, wrapConsolePrototype_fn).call(this, cid);
|
|
77
77
|
(_a = import.meta.hot) == null ? void 0 : _a.on(WDIO_EVENT_NAME, (payload) => {
|
|
@@ -140,10 +140,11 @@ var ProxyDriver = class {
|
|
|
140
140
|
const monad = webdriverMonad(params, modifier, prototype);
|
|
141
141
|
const client = monad(window.__wdioEnv__.sessionId, commandWrapper);
|
|
142
142
|
if (params.capabilities.webSocketUrl && client._bidiHandler) {
|
|
143
|
-
await client._bidiHandler.connect()
|
|
144
|
-
|
|
143
|
+
if (await client._bidiHandler.connect()) {
|
|
144
|
+
(_c = client._bidiHandler.socket) == null ? void 0 : _c.on("message", parseBidiMessage.bind(client));
|
|
145
|
+
}
|
|
145
146
|
}
|
|
146
|
-
(
|
|
147
|
+
(_d = import.meta.hot) == null ? void 0 : _d.send(WDIO_EVENT_NAME, {
|
|
147
148
|
type: MESSAGE_TYPES.initiateBrowserStateRequest,
|
|
148
149
|
value: { cid }
|
|
149
150
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/browser-runner",
|
|
3
|
-
"version": "9.12.
|
|
3
|
+
"version": "9.12.2",
|
|
4
4
|
"description": "A WebdriverIO runner to run unit tests tests in the browser.",
|
|
5
5
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-browser-runner",
|
|
@@ -74,14 +74,14 @@
|
|
|
74
74
|
"dependencies": {
|
|
75
75
|
"@originjs/vite-plugin-commonjs": "^1.0.3",
|
|
76
76
|
"@vitest/spy": "^2.0.4",
|
|
77
|
-
"@wdio/globals": "9.12.
|
|
78
|
-
"@wdio/local-runner": "9.12.
|
|
77
|
+
"@wdio/globals": "9.12.2",
|
|
78
|
+
"@wdio/local-runner": "9.12.2",
|
|
79
79
|
"@wdio/logger": "9.4.4",
|
|
80
|
-
"@wdio/mocha-framework": "9.
|
|
81
|
-
"@wdio/protocols": "9.
|
|
82
|
-
"@wdio/runner": "9.12.
|
|
83
|
-
"@wdio/types": "9.
|
|
84
|
-
"@wdio/utils": "9.
|
|
80
|
+
"@wdio/mocha-framework": "9.12.2",
|
|
81
|
+
"@wdio/protocols": "9.12.2",
|
|
82
|
+
"@wdio/runner": "9.12.2",
|
|
83
|
+
"@wdio/types": "9.12.2",
|
|
84
|
+
"@wdio/utils": "9.12.2",
|
|
85
85
|
"deepmerge-ts": "^7.0.3",
|
|
86
86
|
"expect": "30.0.0-alpha.7",
|
|
87
87
|
"expect-webdriverio": "^5.1.0",
|
|
@@ -99,8 +99,8 @@
|
|
|
99
99
|
"vite": "^5.4.10",
|
|
100
100
|
"vite-plugin-istanbul": "^6.0.0",
|
|
101
101
|
"vite-plugin-top-level-await": "^1.4.1",
|
|
102
|
-
"webdriver": "9.
|
|
103
|
-
"webdriverio": "9.12.
|
|
102
|
+
"webdriver": "9.12.2",
|
|
103
|
+
"webdriverio": "9.12.2"
|
|
104
104
|
},
|
|
105
105
|
"devDependencies": {
|
|
106
106
|
"@types/istanbul-lib-coverage": "^2.0.6",
|
|
@@ -119,5 +119,5 @@
|
|
|
119
119
|
"publishConfig": {
|
|
120
120
|
"access": "public"
|
|
121
121
|
},
|
|
122
|
-
"gitHead": "
|
|
122
|
+
"gitHead": "dc30cc8863706e3522c78ebb75b0c4a44746aa5b"
|
|
123
123
|
}
|