@rnw-community/wdio 0.35.2 → 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.
@@ -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;AAErG,qBAAa,eAAgB,SAAQ,SAAS;IAC1C,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAkC;IAChE,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAc;gBAEtC,iBAAiB,EAAE,WAAW,CAAC,OAAO,GAAG,MAAM;IAU3D,IAAI,MAAM,IAAI,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAMzC;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,GAA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,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
- this.constructorEl = selectorOrElement;
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;AAInD,MAAa,eAAgB,SAAQ,qBAAS;IAI1C,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,CAAC,aAAa,GAAG,iBAAiB,CAAC;SAC1C;IACL,CAAC;IAED,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kBAAQ,EAAC,QAAQ,EAAE,MAAM,IAAI,CAAC,MAAM,CAAC,CAAC;IACvD,CAAC;IAEQ,KAAK,CAAC,eAAe,CAAC,QAAgB,EAAE,GAAW;QACxD,OAAO,MAAM,IAAA,uBAAa,EAAC,QAAQ,EAAE,GAAG,EAAE,MAAM,IAAI,CAAC,MAAM,CAAC,CAAC;IACjE,CAAC;CACJ;AAzDD,0CAyDC"}
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,IAAI,CAAC,mBAAmB,CAAC,CAAC;IAC7C,CAAC;IAED,KAAK,CAAC,gBAAgB,CAAC,GAAG,IAA0B;QAChD,MAAM,CAAC,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":3,"file":"get-platform.util.d.ts","sourceRoot":"","sources":["../../../src/util/get-platform/get-platform.util.ts"],"names":[],"mappings":"AAEA,eAAO,IAAI,QAAQ;;CAElB,CAAC"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Platform = void 0;
4
+ /* eslint-disable prefer-const */
5
+ // HINT: This is a hack
6
+ exports.Platform = {
7
+ OS: 'web',
8
+ };
9
+ //# sourceMappingURL=get-platform.util.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-platform.util.js","sourceRoot":"","sources":["../../../src/util/get-platform/get-platform.util.ts"],"names":[],"mappings":";;;AAAA,iCAAiC;AACjC,uBAAuB;AACZ,QAAA,QAAQ,GAAG;IAClB,EAAE,EAAE,KAAK;CACZ,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const Platform: any;
2
+ //# sourceMappingURL=get-platform.util.native.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-platform.util.native.d.ts","sourceRoot":"","sources":["../../../src/util/get-platform/get-platform.util.native.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,QAAQ,KAAa,CAAC"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Platform = void 0;
4
+ // eslint-disable-next-line @typescript-eslint/no-require-imports,node/no-missing-require,@typescript-eslint/no-var-requires,@typescript-eslint/no-unsafe-assignment,node/no-extraneous-require
5
+ const { Platform: RNPlatform } = require('react-native');
6
+ // HINT: This is a hack
7
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
8
+ exports.Platform = RNPlatform;
9
+ //# sourceMappingURL=get-platform.util.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-platform.util.native.js","sourceRoot":"","sources":["../../../src/util/get-platform/get-platform.util.native.ts"],"names":[],"mappings":";;;AAAA,+LAA+L;AAC/L,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;AAEzD,uBAAuB;AACvB,mEAAmE;AACtD,QAAA,QAAQ,GAAG,UAAU,CAAC"}
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getTestID = void 0;
4
4
  const shared_1 = require("@rnw-community/shared");
5
5
  const config_1 = require("../../config");
6
- const get_platform_util_1 = require("../get-platform.util");
6
+ const get_platform_util_1 = require("../get-platform/get-platform.util");
7
7
  const isWebTestIDProps = (props) => config_1.WebSelectorConfig in props && (0, shared_1.isDefined)(props[config_1.WebSelectorConfig]);
8
8
  /**
9
9
  * Read testID field from platform specific TestID props generated by setTestID
@@ -1 +1 @@
1
- {"version":3,"file":"get-test-id.js","sourceRoot":"","sources":["../../../src/util/get-test-id/get-test-id.ts"],"names":[],"mappings":";;;AAAA,kDAAoE;AAEpE,yCAAiD;AACjD,4DAAgD;AAIhD,MAAM,gBAAgB,GAAG,CAAC,KAAwD,EAAqC,EAAE,CACrH,0BAAiB,IAAI,KAAK,IAAI,IAAA,kBAAS,EAAC,KAAK,CAAC,0BAAiB,CAAC,CAAC,CAAC;AAEtE;;;;;;;;GAQG;AACI,MAAM,SAAS,GAAG,CAAC,KAAwD,EAAE,aAAa,GAAG,EAAE,EAAU,EAAE;IAC9G,IAAI,4BAAQ,CAAC,EAAE,KAAK,KAAK,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;QAClD,OAAO,KAAK,CAAC,0BAAiB,CAAC,CAAC;KACnC;SAAM,IAAI,IAAA,yBAAgB,EAAC,KAAK,CAAC,MAAM,CAAC,EAAE;QACvC,OAAO,KAAK,CAAC,MAAM,CAAC;KACvB;IAED,OAAO,aAAa,CAAC;AACzB,CAAC,CAAC;AARW,QAAA,SAAS,aAQpB"}
1
+ {"version":3,"file":"get-test-id.js","sourceRoot":"","sources":["../../../src/util/get-test-id/get-test-id.ts"],"names":[],"mappings":";;;AAAA,kDAAoE;AAEpE,yCAAiD;AACjD,yEAA6D;AAI7D,MAAM,gBAAgB,GAAG,CAAC,KAAwD,EAAqC,EAAE,CACrH,0BAAiB,IAAI,KAAK,IAAI,IAAA,kBAAS,EAAC,KAAK,CAAC,0BAAiB,CAAC,CAAC,CAAC;AAEtE;;;;;;;;GAQG;AACI,MAAM,SAAS,GAAG,CAAC,KAAwD,EAAE,aAAa,GAAG,EAAE,EAAU,EAAE;IAC9G,IAAI,4BAAQ,CAAC,EAAE,KAAK,KAAK,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;QAClD,OAAO,KAAK,CAAC,0BAAiB,CAAC,CAAC;KACnC;SAAM,IAAI,IAAA,yBAAgB,EAAC,KAAK,CAAC,MAAM,CAAC,EAAE;QACvC,OAAO,KAAK,CAAC,MAAM,CAAC;KACvB;IAED,OAAO,aAAa,CAAC;AACzB,CAAC,CAAC;AARW,QAAA,SAAS,aAQpB"}
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.setTestID = void 0;
4
4
  const config_1 = require("../../config");
5
- const get_platform_util_1 = require("../get-platform.util");
5
+ const get_platform_util_1 = require("../get-platform/get-platform.util");
6
6
  /**
7
7
  * Get WEB, IOS and Android supported object with TestID fields.
8
8
  *
@@ -1 +1 @@
1
- {"version":3,"file":"set-test-id.js","sourceRoot":"","sources":["../../../src/util/set-test-id/set-test-id.ts"],"names":[],"mappings":";;;AAAA,yCAAiD;AACjD,4DAAgD;AAIhD;;;;;;GAMG;AACI,MAAM,SAAS,GAAG,CAAC,GAAG,IAA4B,EAAqD,EAAE;IAC5G,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAE9B,IAAI,4BAAQ,CAAC,EAAE,KAAK,KAAK,EAAE;QACvB,OAAO,EAAE,CAAC,0BAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;KAC1C;SAAM,IAAI,4BAAQ,CAAC,EAAE,KAAK,KAAK,EAAE;QAC9B,OAAO,EAAE,MAAM,EAAE,CAAC;KACrB;IAED,OAAO,EAAE,kBAAkB,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;AAClD,CAAC,CAAC;AAVW,QAAA,SAAS,aAUpB"}
1
+ {"version":3,"file":"set-test-id.js","sourceRoot":"","sources":["../../../src/util/set-test-id/set-test-id.ts"],"names":[],"mappings":";;;AAAA,yCAAiD;AACjD,yEAA6D;AAI7D;;;;;;GAMG;AACI,MAAM,SAAS,GAAG,CAAC,GAAG,IAA4B,EAAqD,EAAE;IAC5G,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAE9B,IAAI,4BAAQ,CAAC,EAAE,KAAK,KAAK,EAAE;QACvB,OAAO,EAAE,CAAC,0BAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;KAC1C;SAAM,IAAI,4BAAQ,CAAC,EAAE,KAAK,KAAK,EAAE;QAC9B,OAAO,EAAE,MAAM,EAAE,CAAC;KACrB;IAED,OAAO,EAAE,kBAAkB,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;AAClD,CAAC,CAAC;AAVW,QAAA,SAAS,aAUpB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rnw-community/wdio",
3
- "version": "0.35.2",
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": "52797b926583f8a21351936479f8ab08e3a82da8",
39
+ "gitHead": "447367d47fb8b980d7cc1b2f5d74ed57db510002",
40
40
  "dependencies": {
41
41
  "@rnw-community/shared": "^0.8.0"
42
42
  },
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-platform.util.d.ts","sourceRoot":"","sources":["../../src/util/get-platform.util.ts"],"names":[],"mappings":"AACA,eAAO,IAAI,QAAQ;;CAElB,CAAC"}
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Platform = void 0;
4
- // HINT: This is a hack
5
- exports.Platform = {
6
- OS: 'web',
7
- };
8
- try {
9
- // eslint-disable-next-line @typescript-eslint/no-require-imports,node/no-missing-require,@typescript-eslint/no-var-requires,@typescript-eslint/no-unsafe-assignment,node/no-extraneous-require
10
- const { Platform: RNPlatform } = require('react-native');
11
- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
12
- exports.Platform = RNPlatform;
13
- }
14
- catch (e) { }
15
- //# sourceMappingURL=get-platform.util.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-platform.util.js","sourceRoot":"","sources":["../../src/util/get-platform.util.ts"],"names":[],"mappings":";;;AAAA,uBAAuB;AACZ,QAAA,QAAQ,GAAG;IAClB,EAAE,EAAE,KAAK;CACZ,CAAC;AAEF,IAAI;IACA,+LAA+L;IAC/L,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IAEzD,mEAAmE;IACnE,gBAAQ,GAAG,UAAU,CAAC;CACzB;AAAC,OAAO,CAAC,EAAE,GAAE"}