@wdio/browser-runner 8.28.1 → 8.28.4
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expect.d.ts","sourceRoot":"","sources":["../../src/browser/expect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAA2E,MAAM,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"expect.d.ts","sourceRoot":"","sources":["../../src/browser/expect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAA2E,MAAM,QAAQ,CAAA;AA2HxG,OAAO,EAAE,MAAM,EAAE,CAAA"}
|
package/build/browser/expect.js
CHANGED
|
@@ -58,6 +58,14 @@ expect.extend(matchers.reduce((acc, matcherName) => {
|
|
|
58
58
|
if (context instanceof Element) {
|
|
59
59
|
expectRequest.element = await $(context);
|
|
60
60
|
}
|
|
61
|
+
/**
|
|
62
|
+
* Avoid serialization issues when sending over the element. If we create
|
|
63
|
+
* an element from an existing HTMLElement, it might have custom properties
|
|
64
|
+
* attached to it that can't be serialized.
|
|
65
|
+
*/
|
|
66
|
+
if (expectRequest.element && typeof expectRequest.element.selector !== 'string') {
|
|
67
|
+
expectRequest.element.selector = undefined;
|
|
68
|
+
}
|
|
61
69
|
import.meta.hot.send(WDIO_EVENT_NAME, { type: MESSAGE_TYPES.expectRequestMessage, value: expectRequest });
|
|
62
70
|
const contextString = 'elementId' in context ? 'WebdriverIO.Element' : 'WebdriverIO.Browser';
|
|
63
71
|
return new Promise((resolve, reject) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/browser-runner",
|
|
3
|
-
"version": "8.28.
|
|
3
|
+
"version": "8.28.4",
|
|
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",
|
|
@@ -34,12 +34,12 @@
|
|
|
34
34
|
"@originjs/vite-plugin-commonjs": "^1.0.3",
|
|
35
35
|
"@types/istanbul-lib-source-maps": "^4.0.1",
|
|
36
36
|
"@vitest/spy": "^1.0.1",
|
|
37
|
-
"@wdio/globals": "8.28.
|
|
38
|
-
"@wdio/local-runner": "8.28.
|
|
37
|
+
"@wdio/globals": "8.28.4",
|
|
38
|
+
"@wdio/local-runner": "8.28.4",
|
|
39
39
|
"@wdio/logger": "8.28.0",
|
|
40
40
|
"@wdio/mocha-framework": "8.28.0",
|
|
41
41
|
"@wdio/protocols": "^8.24.12",
|
|
42
|
-
"@wdio/runner": "8.28.
|
|
42
|
+
"@wdio/runner": "8.28.4",
|
|
43
43
|
"@wdio/types": "8.28.0",
|
|
44
44
|
"@wdio/utils": "8.28.0",
|
|
45
45
|
"deepmerge-ts": "^5.0.0",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"vite-plugin-istanbul": "^5.0.0",
|
|
61
61
|
"vite-plugin-top-level-await": "^1.3.0",
|
|
62
62
|
"webdriver": "8.28.0",
|
|
63
|
-
"webdriverio": "8.28.
|
|
63
|
+
"webdriverio": "8.28.4"
|
|
64
64
|
},
|
|
65
65
|
"scripts": {
|
|
66
66
|
"prepare": "rimraf node_modules/@wdio/config node_modules/@wdio/repl node_modules/@wdio/utils"
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"publishConfig": {
|
|
69
69
|
"access": "public"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "fbb60e474d2565447f43016ebc7444b679f85ff1"
|
|
72
72
|
}
|