@rnw-community/wdio 0.35.3 → 0.36.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/dist/component/rooted-component/rooted-component.d.ts +1 -0
- package/dist/component/rooted-component/rooted-component.d.ts.map +1 -1
- package/dist/component/rooted-component/rooted-component.js +9 -1
- package/dist/component/rooted-component/rooted-component.js.map +1 -1
- package/package.json +2 -2
|
@@ -3,6 +3,7 @@ import { Component } from '../component/component';
|
|
|
3
3
|
import type { ClickArgs, WaitForDisplayedArgs, WaitForEnabledArgs, WaitForExistArgs } from '../type';
|
|
4
4
|
export declare class RootedComponent extends Component {
|
|
5
5
|
private readonly constructorEl;
|
|
6
|
+
private readonly constructorPromiseEl;
|
|
6
7
|
private readonly constructorSelector;
|
|
7
8
|
constructor(selectorOrElement: WebdriverIO.Element | string);
|
|
8
9
|
get RootEl(): Promise<WebdriverIO.Element>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rooted-component.d.ts","sourceRoot":"","sources":["../../../src/component/rooted-component/rooted-component.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEnD,OAAO,KAAK,EAAE,SAAS,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"rooted-component.d.ts","sourceRoot":"","sources":["../../../src/component/rooted-component/rooted-component.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEnD,OAAO,KAAK,EAAE,SAAS,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAGrG,qBAAa,eAAgB,SAAQ,SAAS;IAC1C,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAkC;IAChE,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAA2D;IAChG,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAc;gBAEtC,iBAAiB,EAAE,WAAW,CAAC,OAAO,GAAG,MAAM;IAc3D,IAAI,MAAM,IAAI,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAQzC;IAEK,gBAAgB,CAAC,GAAG,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC;IAI9D,cAAc,CAAC,GAAG,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC;IAI1D,YAAY,CAAC,GAAG,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC;IAItD,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC;IAI/B,UAAU,IAAI,OAAO,CAAC,OAAO,CAAC;IAI9B,KAAK,CAAC,GAAG,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;IAI/B,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC;IAI1D,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC;IAIhE,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC;CAG9F"}
|
|
@@ -12,13 +12,21 @@ class RootedComponent extends component_1.Component {
|
|
|
12
12
|
this.constructorSelector = selectorOrElement;
|
|
13
13
|
}
|
|
14
14
|
else if ((0, shared_1.isDefined)(selectorOrElement)) {
|
|
15
|
-
|
|
15
|
+
if ('then' in selectorOrElement) {
|
|
16
|
+
this.constructorPromiseEl = selectorOrElement;
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
this.constructorEl = selectorOrElement;
|
|
20
|
+
}
|
|
16
21
|
}
|
|
17
22
|
}
|
|
18
23
|
get RootEl() {
|
|
19
24
|
if ((0, shared_1.isDefined)(this.constructorEl)) {
|
|
20
25
|
return Promise.resolve(this.constructorEl);
|
|
21
26
|
}
|
|
27
|
+
else if ((0, shared_1.isDefined)(this.constructorPromiseEl)) {
|
|
28
|
+
return this.constructorPromiseEl;
|
|
29
|
+
}
|
|
22
30
|
return (0, command_1.testID$)(this.constructorSelector);
|
|
23
31
|
}
|
|
24
32
|
async waitForDisplayed(...args) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rooted-component.js","sourceRoot":"","sources":["../../../src/component/rooted-component/rooted-component.ts"],"names":[],"mappings":";;;AAAA,kDAAoE;AAEpE,2CAAiE;AACjE,sDAAmD;
|
|
1
|
+
{"version":3,"file":"rooted-component.js","sourceRoot":"","sources":["../../../src/component/rooted-component/rooted-component.ts"],"names":[],"mappings":";;;AAAA,kDAAoE;AAEpE,2CAAiE;AACjE,sDAAmD;AAKnD,MAAa,eAAgB,SAAQ,qBAAS;IAK1C,YAAY,iBAA+C;QACvD,KAAK,EAAE,CAAC;QAHK,wBAAmB,GAAW,EAAE,CAAC;QAK9C,IAAI,IAAA,yBAAgB,EAAC,iBAAiB,CAAC,EAAE;YACrC,IAAI,CAAC,mBAAmB,GAAG,iBAAiB,CAAC;SAChD;aAAM,IAAI,IAAA,kBAAS,EAAC,iBAAiB,CAAC,EAAE;YACrC,IAAI,MAAM,IAAI,iBAAiB,EAAE;gBAC7B,IAAI,CAAC,oBAAoB,GAAG,iBAAiB,CAAC;aACjD;iBAAM;gBACH,IAAI,CAAC,aAAa,GAAG,iBAAiB,CAAC;aAC1C;SACJ;IACL,CAAC;IAED,IAAI,MAAM;QACN,IAAI,IAAA,kBAAS,EAAC,IAAI,CAAC,aAAa,CAAC,EAAE;YAC/B,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;SAC9C;aAAM,IAAI,IAAA,kBAAS,EAAC,IAAI,CAAC,oBAAoB,CAAC,EAAE;YAC7C,OAAO,IAAI,CAAC,oBAAoB,CAAC;SACpC;QAED,OAAO,IAAA,iBAAO,EAAC,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GAAG,EAAE,MAAM,IAAI,CAAC,MAAM,CAAC,CAAC;IACjE,CAAC;CACJ;AAhED,0CAgEC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rnw-community/wdio",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.36.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "WDIO commands, page objects and utils",
|
|
6
6
|
"keywords": [
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"engines": {
|
|
37
37
|
"node": ">=14.0.0"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "447367d47fb8b980d7cc1b2f5d74ed57db510002",
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@rnw-community/shared": "^0.8.0"
|
|
42
42
|
},
|