@wdio/browser-runner 8.31.0 → 8.32.0
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/expect.js +1 -1
- package/build/browser/utils.js +4 -4
- package/package.json +11 -11
package/build/browser/expect.js
CHANGED
|
@@ -42,7 +42,7 @@ function createMatcher(matcherName) {
|
|
|
42
42
|
/**
|
|
43
43
|
* Check if context is an WebdriverIO.Element
|
|
44
44
|
*/
|
|
45
|
-
if (isContextObject && '
|
|
45
|
+
if (isContextObject && 'selector' in context && 'selector' in context) {
|
|
46
46
|
expectRequest.element = context;
|
|
47
47
|
}
|
|
48
48
|
/**
|
package/build/browser/utils.js
CHANGED
|
@@ -25,18 +25,18 @@ export const showPopupWarning = (name, value, defaultValue) => (...params) => {
|
|
|
25
25
|
export function sanitizeConsoleArgs(args) {
|
|
26
26
|
return args.map((arg) => {
|
|
27
27
|
try {
|
|
28
|
-
if (arg && typeof arg.
|
|
29
|
-
return `WebdriverIO.Element
|
|
28
|
+
if (arg && typeof arg.selector === 'string') {
|
|
29
|
+
return `WebdriverIO.Element<"${arg.selector}">`;
|
|
30
30
|
}
|
|
31
31
|
if (arg && typeof arg.sessionId === 'string') {
|
|
32
|
-
return `WebdriverIO.Browser<${arg.
|
|
32
|
+
return `WebdriverIO.Browser<${arg.capabilities.browserName}>`;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
catch (err) {
|
|
36
36
|
// ignore
|
|
37
37
|
}
|
|
38
38
|
if (arg instanceof HTMLElement ||
|
|
39
|
-
(arg && typeof arg === 'object' &&
|
|
39
|
+
(arg && typeof arg === 'object' && typeof arg.then === 'function') ||
|
|
40
40
|
typeof arg === 'function') {
|
|
41
41
|
return arg.toString();
|
|
42
42
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/browser-runner",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.32.0",
|
|
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",
|
|
@@ -37,14 +37,14 @@
|
|
|
37
37
|
"@originjs/vite-plugin-commonjs": "^1.0.3",
|
|
38
38
|
"@types/istanbul-lib-source-maps": "^4.0.1",
|
|
39
39
|
"@vitest/spy": "^1.0.1",
|
|
40
|
-
"@wdio/globals": "8.
|
|
41
|
-
"@wdio/local-runner": "8.
|
|
40
|
+
"@wdio/globals": "8.32.0",
|
|
41
|
+
"@wdio/local-runner": "8.32.0",
|
|
42
42
|
"@wdio/logger": "8.28.0",
|
|
43
|
-
"@wdio/mocha-framework": "8.31.
|
|
44
|
-
"@wdio/protocols": "8.
|
|
45
|
-
"@wdio/runner": "8.
|
|
46
|
-
"@wdio/types": "8.31.
|
|
47
|
-
"@wdio/utils": "8.31.
|
|
43
|
+
"@wdio/mocha-framework": "8.31.1",
|
|
44
|
+
"@wdio/protocols": "8.32.0",
|
|
45
|
+
"@wdio/runner": "8.32.0",
|
|
46
|
+
"@wdio/types": "8.31.1",
|
|
47
|
+
"@wdio/utils": "8.31.1",
|
|
48
48
|
"deepmerge-ts": "^5.0.0",
|
|
49
49
|
"expect": "^29.7.0",
|
|
50
50
|
"expect-webdriverio": "^4.11.2",
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
"vite": "~4.5.0",
|
|
63
63
|
"vite-plugin-istanbul": "^5.0.0",
|
|
64
64
|
"vite-plugin-top-level-await": "^1.3.0",
|
|
65
|
-
"webdriver": "8.
|
|
66
|
-
"webdriverio": "8.
|
|
65
|
+
"webdriver": "8.32.0",
|
|
66
|
+
"webdriverio": "8.32.0"
|
|
67
67
|
},
|
|
68
68
|
"scripts": {
|
|
69
69
|
"prepare": "rimraf node_modules/@wdio/config node_modules/@wdio/repl node_modules/@wdio/utils"
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"publishConfig": {
|
|
72
72
|
"access": "public"
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "912ff55c216bbcd99ab5b376246cdd04e52dc099"
|
|
75
75
|
}
|