@badisi/wdio-harness 4.0.2 → 4.1.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.
|
@@ -146,10 +146,10 @@ export class WebdriverIOTestElement {
|
|
|
146
146
|
}
|
|
147
147
|
/** Gets the text from the element. */
|
|
148
148
|
async text(options) {
|
|
149
|
-
this.logAction('TEXT', `{ exclude: ${options?.exclude} }`);
|
|
149
|
+
this.logAction('TEXT', options?.exclude ? `{ exclude: ${options?.exclude} }` : undefined);
|
|
150
150
|
if (options?.exclude) {
|
|
151
151
|
return browser.executeScript(`
|
|
152
|
-
const clone = arguments[0].cloneNode(true)
|
|
152
|
+
const clone = arguments[0].cloneNode(true);
|
|
153
153
|
const exclusions = clone.querySelectorAll(arguments[1]);
|
|
154
154
|
for (let i = 0; i < exclusions.length; i++) {
|
|
155
155
|
exclusions[i].remove();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@badisi/wdio-harness",
|
|
3
|
-
"version": "4.0
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "WebdriverIO support for Angular component test harnesses.",
|
|
5
5
|
"homepage": "https://github.com/badisi/wdio-harness",
|
|
6
6
|
"license": "MIT",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"node": "^16.14.0 || >=18.10.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@angular/cdk": ">= 13 <
|
|
42
|
+
"@angular/cdk": ">= 13 < 20",
|
|
43
43
|
"@wdio/logger": ">= 9 < 10",
|
|
44
44
|
"webdriverio": ">= 9 < 10"
|
|
45
45
|
},
|