expect-webdriverio 5.4.2 → 5.4.3
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.
|
@@ -13,7 +13,7 @@ async function condition(el, text, options) {
|
|
|
13
13
|
: compareText(actualText, text, options).result;
|
|
14
14
|
resultArray.push(result);
|
|
15
15
|
}
|
|
16
|
-
checkAllValuesMatchCondition = resultArray.every(
|
|
16
|
+
checkAllValuesMatchCondition = resultArray.every(Boolean);
|
|
17
17
|
}
|
|
18
18
|
else {
|
|
19
19
|
const actualText = await el.getText();
|
|
@@ -89,13 +89,13 @@ const headersMatcher = (headers, expected) => {
|
|
|
89
89
|
return equals(headers, expected);
|
|
90
90
|
};
|
|
91
91
|
const isMatcher = (filter) => {
|
|
92
|
+
const proto = Object.getPrototypeOf(filter);
|
|
92
93
|
return (typeof filter === 'object' &&
|
|
93
94
|
filter !== null &&
|
|
94
|
-
'
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
typeof filter.__proto__.asymmetricMatch === 'function');
|
|
95
|
+
typeof proto === 'object' &&
|
|
96
|
+
proto &&
|
|
97
|
+
'asymmetricMatch' in proto &&
|
|
98
|
+
typeof proto.asymmetricMatch === 'function');
|
|
99
99
|
};
|
|
100
100
|
const minifyRequestMock = (requestMock, requestedWith) => {
|
|
101
101
|
if (typeof requestMock === 'undefined') {
|
package/lib/utils.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expect-webdriverio",
|
|
3
|
-
"version": "5.4.
|
|
3
|
+
"version": "5.4.3",
|
|
4
4
|
"author": "Mykola Grybyk <mykola.grybyk@gmail.com>",
|
|
5
5
|
"description": "WebdriverIO Assertion Library",
|
|
6
6
|
"license": "MIT",
|
|
@@ -72,7 +72,6 @@
|
|
|
72
72
|
"@vitest/coverage-v8": "^3.2.4",
|
|
73
73
|
"@wdio/eslint": "^0.1.1",
|
|
74
74
|
"@wdio/types": "^9.15.0",
|
|
75
|
-
"c8": "^10.1.3",
|
|
76
75
|
"eslint": "^9.29.0",
|
|
77
76
|
"husky": "^9.1.7",
|
|
78
77
|
"npm-run-all2": "^8.0.4",
|