@rnw-community/wdio 0.41.0 → 0.42.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/cjs/command/by-index.command.js +2 -2
- package/dist/cjs/command/by-index.command.js.map +1 -1
- package/dist/cjs/command/el.command.d.ts +3 -0
- package/dist/cjs/command/el.command.d.ts.map +1 -0
- package/dist/cjs/command/el.command.js +6 -0
- package/dist/cjs/command/el.command.js.map +1 -0
- package/dist/cjs/command/els.command.d.ts +3 -0
- package/dist/cjs/command/els.command.d.ts.map +1 -0
- package/dist/cjs/command/els.command.js +6 -0
- package/dist/cjs/command/els.command.js.map +1 -0
- package/dist/cjs/command/index.d.ts +2 -0
- package/dist/cjs/command/index.d.ts.map +1 -1
- package/dist/cjs/command/index.js +5 -1
- package/dist/cjs/command/index.js.map +1 -1
- package/dist/cjs/command/test-id-index.command.js +1 -1
- package/dist/cjs/command/test-id-index.command.js.map +1 -1
- package/dist/cjs/component/component/component.d.ts +2 -3
- package/dist/cjs/component/component/component.d.ts.map +1 -1
- package/dist/cjs/component/component/component.js +2 -0
- package/dist/cjs/component/component/component.js.map +1 -1
- package/dist/cjs/component/component/get-component/get-component.d.ts +1 -1
- package/dist/cjs/component/component/get-component/get-component.d.ts.map +1 -1
- package/dist/cjs/component/component/get-exteded-component/__mocks__/mock-component.d.ts +7 -0
- package/dist/cjs/component/component/get-exteded-component/__mocks__/mock-component.d.ts.map +1 -0
- package/dist/cjs/component/component/get-exteded-component/__mocks__/mock-component.js +10 -0
- package/dist/cjs/component/component/get-exteded-component/__mocks__/mock-component.js.map +1 -0
- package/dist/cjs/component/component/get-exteded-component/__mocks__/mock-component.selectors.d.ts +5 -0
- package/dist/cjs/component/component/get-exteded-component/__mocks__/mock-component.selectors.d.ts.map +1 -0
- package/dist/cjs/component/component/get-exteded-component/__mocks__/mock-component.selectors.js +9 -0
- package/dist/cjs/component/component/get-exteded-component/__mocks__/mock-component.selectors.js.map +1 -0
- package/dist/cjs/component/component/get-exteded-component/__mocks__/mock-parent-component.d.ts +11 -0
- package/dist/cjs/component/component/get-exteded-component/__mocks__/mock-parent-component.d.ts.map +1 -0
- package/dist/cjs/component/component/get-exteded-component/__mocks__/mock-parent-component.js +23 -0
- package/dist/cjs/component/component/get-exteded-component/__mocks__/mock-parent-component.js.map +1 -0
- package/dist/cjs/component/component/get-exteded-component/__mocks__/mock-parent-component.selectors.d.ts +5 -0
- package/dist/cjs/component/component/get-exteded-component/__mocks__/mock-parent-component.selectors.d.ts.map +1 -0
- package/dist/cjs/component/component/get-exteded-component/__mocks__/mock-parent-component.selectors.js +9 -0
- package/dist/cjs/component/component/get-exteded-component/__mocks__/mock-parent-component.selectors.js.map +1 -0
- package/dist/cjs/component/component/get-exteded-component/get-extended-component.js.map +1 -1
- package/dist/cjs/component/default$-component.config.d.ts.map +1 -1
- package/dist/cjs/component/default$-component.config.js +2 -2
- package/dist/cjs/component/default$-component.config.js.map +1 -1
- package/dist/cjs/component/rooted-component/get$-rooted-component/get$-rooted-component.d.ts +1 -1
- package/dist/cjs/component/rooted-component/get$-rooted-component/get$-rooted-component.d.ts.map +1 -1
- package/dist/cjs/component/rooted-component/get-extended-rooted-component/__mocks__/mock-rooted-component.d.ts +8 -0
- package/dist/cjs/component/rooted-component/get-extended-rooted-component/__mocks__/mock-rooted-component.d.ts.map +1 -0
- package/dist/cjs/component/rooted-component/get-extended-rooted-component/__mocks__/mock-rooted-component.js +13 -0
- package/dist/cjs/component/rooted-component/get-extended-rooted-component/__mocks__/mock-rooted-component.js.map +1 -0
- package/dist/cjs/component/rooted-component/get-extended-rooted-component/__mocks__/mock-rooted-component.selectors.d.ts +6 -0
- package/dist/cjs/component/rooted-component/get-extended-rooted-component/__mocks__/mock-rooted-component.selectors.d.ts.map +1 -0
- package/dist/cjs/component/rooted-component/get-extended-rooted-component/__mocks__/mock-rooted-component.selectors.js +10 -0
- package/dist/cjs/component/rooted-component/get-extended-rooted-component/__mocks__/mock-rooted-component.selectors.js.map +1 -0
- package/dist/cjs/component/rooted-component/get-extended-rooted-component/__mocks__/mock-rooted-parent-component.d.ts +11 -0
- package/dist/cjs/component/rooted-component/get-extended-rooted-component/__mocks__/mock-rooted-parent-component.d.ts.map +1 -0
- package/dist/cjs/component/rooted-component/get-extended-rooted-component/__mocks__/mock-rooted-parent-component.js +23 -0
- package/dist/cjs/component/rooted-component/get-extended-rooted-component/__mocks__/mock-rooted-parent-component.js.map +1 -0
- package/dist/cjs/component/rooted-component/get-extended-rooted-component/__mocks__/mock-rooted-parent-component.selectors.d.ts +5 -0
- package/dist/cjs/component/rooted-component/get-extended-rooted-component/__mocks__/mock-rooted-parent-component.selectors.d.ts.map +1 -0
- package/dist/cjs/component/rooted-component/get-extended-rooted-component/__mocks__/mock-rooted-parent-component.selectors.js +9 -0
- package/dist/cjs/component/rooted-component/get-extended-rooted-component/__mocks__/mock-rooted-parent-component.selectors.js.map +1 -0
- package/dist/cjs/component/rooted-component/get-rooted-component/get-rooted-component.d.ts +2 -1
- package/dist/cjs/component/rooted-component/get-rooted-component/get-rooted-component.d.ts.map +1 -1
- package/dist/cjs/component/rooted-component/rooted-component.d.ts +2 -3
- package/dist/cjs/component/rooted-component/rooted-component.d.ts.map +1 -1
- package/dist/cjs/component/rooted-component/rooted-component.js +3 -1
- package/dist/cjs/component/rooted-component/rooted-component.js.map +1 -1
- package/dist/cjs/component/type/component-input-arg.type.d.ts +1 -1
- package/dist/cjs/component/type/component-input-arg.type.d.ts.map +1 -1
- package/dist/cjs/component/type/component-with-selectors-ctor.type.d.ts +2 -1
- package/dist/cjs/component/type/component-with-selectors-ctor.type.d.ts.map +1 -1
- package/dist/cjs/component/type/rooted-component-with-selectors-ctor.type.d.ts +2 -1
- package/dist/cjs/component/type/rooted-component-with-selectors-ctor.type.d.ts.map +1 -1
- package/dist/cjs/tsconfig.build-cjs.tsbuildinfo +1 -1
- package/dist/esm/command/by-index.command.js +2 -2
- package/dist/esm/command/by-index.command.js.map +1 -1
- package/dist/esm/command/el.command.d.ts +3 -0
- package/dist/esm/command/el.command.d.ts.map +1 -0
- package/dist/esm/command/el.command.js +2 -0
- package/dist/esm/command/el.command.js.map +1 -0
- package/dist/esm/command/els.command.d.ts +3 -0
- package/dist/esm/command/els.command.d.ts.map +1 -0
- package/dist/esm/command/els.command.js +2 -0
- package/dist/esm/command/els.command.js.map +1 -0
- package/dist/esm/command/index.d.ts +2 -0
- package/dist/esm/command/index.d.ts.map +1 -1
- package/dist/esm/command/index.js +2 -0
- package/dist/esm/command/index.js.map +1 -1
- package/dist/esm/command/test-id-index.command.js +1 -1
- package/dist/esm/command/test-id-index.command.js.map +1 -1
- package/dist/esm/component/component/component.d.ts +2 -3
- package/dist/esm/component/component/component.d.ts.map +1 -1
- package/dist/esm/component/component/component.js +2 -0
- package/dist/esm/component/component/component.js.map +1 -1
- package/dist/esm/component/component/get-component/get-component.d.ts +1 -1
- package/dist/esm/component/component/get-component/get-component.d.ts.map +1 -1
- package/dist/esm/component/component/get-exteded-component/__mocks__/mock-component.d.ts +7 -0
- package/dist/esm/component/component/get-exteded-component/__mocks__/mock-component.d.ts.map +1 -0
- package/dist/esm/component/component/get-exteded-component/__mocks__/mock-component.js +6 -0
- package/dist/esm/component/component/get-exteded-component/__mocks__/mock-component.js.map +1 -0
- package/dist/esm/component/component/get-exteded-component/__mocks__/mock-component.selectors.d.ts +5 -0
- package/dist/esm/component/component/get-exteded-component/__mocks__/mock-component.selectors.d.ts.map +1 -0
- package/dist/esm/component/component/get-exteded-component/__mocks__/mock-component.selectors.js +6 -0
- package/dist/esm/component/component/get-exteded-component/__mocks__/mock-component.selectors.js.map +1 -0
- package/dist/esm/component/component/get-exteded-component/__mocks__/mock-parent-component.d.ts +11 -0
- package/dist/esm/component/component/get-exteded-component/__mocks__/mock-parent-component.d.ts.map +1 -0
- package/dist/esm/component/component/get-exteded-component/__mocks__/mock-parent-component.js +16 -0
- package/dist/esm/component/component/get-exteded-component/__mocks__/mock-parent-component.js.map +1 -0
- package/dist/esm/component/component/get-exteded-component/__mocks__/mock-parent-component.selectors.d.ts +5 -0
- package/dist/esm/component/component/get-exteded-component/__mocks__/mock-parent-component.selectors.d.ts.map +1 -0
- package/dist/esm/component/component/get-exteded-component/__mocks__/mock-parent-component.selectors.js +6 -0
- package/dist/esm/component/component/get-exteded-component/__mocks__/mock-parent-component.selectors.js.map +1 -0
- package/dist/esm/component/component/get-exteded-component/get-extended-component.js.map +1 -1
- package/dist/esm/component/default$-component.config.d.ts.map +1 -1
- package/dist/esm/component/default$-component.config.js +3 -3
- package/dist/esm/component/default$-component.config.js.map +1 -1
- package/dist/esm/component/rooted-component/get$-rooted-component/get$-rooted-component.d.ts +1 -1
- package/dist/esm/component/rooted-component/get$-rooted-component/get$-rooted-component.d.ts.map +1 -1
- package/dist/esm/component/rooted-component/get-extended-rooted-component/__mocks__/mock-rooted-component.d.ts +8 -0
- package/dist/esm/component/rooted-component/get-extended-rooted-component/__mocks__/mock-rooted-component.d.ts.map +1 -0
- package/dist/esm/component/rooted-component/get-extended-rooted-component/__mocks__/mock-rooted-component.js +9 -0
- package/dist/esm/component/rooted-component/get-extended-rooted-component/__mocks__/mock-rooted-component.js.map +1 -0
- package/dist/esm/component/rooted-component/get-extended-rooted-component/__mocks__/mock-rooted-component.selectors.d.ts +6 -0
- package/dist/esm/component/rooted-component/get-extended-rooted-component/__mocks__/mock-rooted-component.selectors.d.ts.map +1 -0
- package/dist/esm/component/rooted-component/get-extended-rooted-component/__mocks__/mock-rooted-component.selectors.js +7 -0
- package/dist/esm/component/rooted-component/get-extended-rooted-component/__mocks__/mock-rooted-component.selectors.js.map +1 -0
- package/dist/esm/component/rooted-component/get-extended-rooted-component/__mocks__/mock-rooted-parent-component.d.ts +11 -0
- package/dist/esm/component/rooted-component/get-extended-rooted-component/__mocks__/mock-rooted-parent-component.d.ts.map +1 -0
- package/dist/esm/component/rooted-component/get-extended-rooted-component/__mocks__/mock-rooted-parent-component.js +16 -0
- package/dist/esm/component/rooted-component/get-extended-rooted-component/__mocks__/mock-rooted-parent-component.js.map +1 -0
- package/dist/esm/component/rooted-component/get-extended-rooted-component/__mocks__/mock-rooted-parent-component.selectors.d.ts +5 -0
- package/dist/esm/component/rooted-component/get-extended-rooted-component/__mocks__/mock-rooted-parent-component.selectors.d.ts.map +1 -0
- package/dist/esm/component/rooted-component/get-extended-rooted-component/__mocks__/mock-rooted-parent-component.selectors.js +6 -0
- package/dist/esm/component/rooted-component/get-extended-rooted-component/__mocks__/mock-rooted-parent-component.selectors.js.map +1 -0
- package/dist/esm/component/rooted-component/get-rooted-component/get-rooted-component.d.ts +2 -1
- package/dist/esm/component/rooted-component/get-rooted-component/get-rooted-component.d.ts.map +1 -1
- package/dist/esm/component/rooted-component/rooted-component.d.ts +2 -3
- package/dist/esm/component/rooted-component/rooted-component.d.ts.map +1 -1
- package/dist/esm/component/rooted-component/rooted-component.js +3 -1
- package/dist/esm/component/rooted-component/rooted-component.js.map +1 -1
- package/dist/esm/component/type/component-input-arg.type.d.ts +1 -1
- package/dist/esm/component/type/component-input-arg.type.d.ts.map +1 -1
- package/dist/esm/component/type/component-with-selectors-ctor.type.d.ts +2 -1
- package/dist/esm/component/type/component-with-selectors-ctor.type.d.ts.map +1 -1
- package/dist/esm/component/type/rooted-component-with-selectors-ctor.type.d.ts +2 -1
- package/dist/esm/component/type/rooted-component-with-selectors-ctor.type.d.ts.map +1 -1
- package/dist/esm/tsconfig.build-esm.tsbuildinfo +1 -1
- package/package.json +4 -4
- package/readme.md +1 -1
- package/dist/cjs/component/component/index.d.ts +0 -7
- package/dist/cjs/component/component/index.d.ts.map +0 -1
- package/dist/cjs/component/component/index.js +0 -16
- package/dist/cjs/component/component/index.js.map +0 -1
- package/dist/esm/component/component/index.d.ts +0 -7
- package/dist/esm/component/component/index.d.ts.map +0 -1
- package/dist/esm/component/component/index.js +0 -7
- package/dist/esm/component/component/index.js.map +0 -1
|
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.byIndex$$ = void 0;
|
|
4
4
|
const byIndex$$ = (testID, index, context = browser) => context.$$(testID).then(elements => {
|
|
5
5
|
if (index >= elements.length || index < 0) {
|
|
6
|
-
throw new Error(`Cannot get item by
|
|
6
|
+
throw new Error(`Cannot get item by $$ "${testID}" with index "${index}"`);
|
|
7
7
|
}
|
|
8
|
-
return elements[index];
|
|
8
|
+
return $(elements[index]);
|
|
9
9
|
});
|
|
10
10
|
exports.byIndex$$ = byIndex$$;
|
|
11
11
|
//# sourceMappingURL=by-index.command.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"by-index.command.js","sourceRoot":"","sources":["../../../src/command/by-index.command.ts"],"names":[],"mappings":";;;AAGO,MAAM,SAAS,GAAuB,CAAC,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,EAAE,EAAE,CAC9E,OAAO,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE;IAC/B,IAAI,KAAK,IAAI,QAAQ,CAAC,MAAM,IAAI,KAAK,GAAG,CAAC,EAAE;QACvC,MAAM,IAAI,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"by-index.command.js","sourceRoot":"","sources":["../../../src/command/by-index.command.ts"],"names":[],"mappings":";;;AAGO,MAAM,SAAS,GAAuB,CAAC,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,EAAE,EAAE,CAC9E,OAAO,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE;IAC/B,IAAI,KAAK,IAAI,QAAQ,CAAC,MAAM,IAAI,KAAK,GAAG,CAAC,EAAE;QACvC,MAAM,IAAI,KAAK,CAAC,0BAA0B,MAAM,iBAAiB,KAAK,GAAG,CAAC,CAAC;KAC9E;IAED,OAAO,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;AAC9B,CAAC,CAAiD,CAAC;AAP1C,QAAA,SAAS,aAOiC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"el.command.d.ts","sourceRoot":"","sources":["../../../src/command/el.command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,eAAO,MAAM,GAAG,EAAE,YAAmE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"el.command.js","sourceRoot":"","sources":["../../../src/command/el.command.ts"],"names":[],"mappings":";;;AAEO,MAAM,GAAG,GAAiB,CAAC,QAAQ,EAAE,OAAO,GAAG,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;AAAzE,QAAA,GAAG,OAAsE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"els.command.d.ts","sourceRoot":"","sources":["../../../src/command/els.command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,eAAO,MAAM,IAAI,EAAE,aAAqE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"els.command.js","sourceRoot":"","sources":["../../../src/command/els.command.ts"],"names":[],"mappings":";;;AAEO,MAAM,IAAI,GAAkB,CAAC,QAAQ,EAAE,OAAO,GAAG,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC;AAA5E,QAAA,IAAI,QAAwE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/command/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/command/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC"}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.relativeClickCommand = exports.openDeepLinkCommand = exports.byIndex$$ = exports.clearInputCommand = exports.slowInputCommand = exports.testID$$Index = exports.testID$$ = exports.testID$ = void 0;
|
|
3
|
+
exports.relativeClickCommand = exports.openDeepLinkCommand = exports.byIndex$$ = exports.clearInputCommand = exports.slowInputCommand = exports.testID$$Index = exports.testID$$ = exports.testID$ = exports.els$ = exports.el$ = void 0;
|
|
4
|
+
var el_command_1 = require("./el.command");
|
|
5
|
+
Object.defineProperty(exports, "el$", { enumerable: true, get: function () { return el_command_1.el$; } });
|
|
6
|
+
var els_command_1 = require("./els.command");
|
|
7
|
+
Object.defineProperty(exports, "els$", { enumerable: true, get: function () { return els_command_1.els$; } });
|
|
4
8
|
var test_id_command_1 = require("./test-id.command");
|
|
5
9
|
Object.defineProperty(exports, "testID$", { enumerable: true, get: function () { return test_id_command_1.testID$; } });
|
|
6
10
|
var test_ids_command_1 = require("./test-ids.command");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/command/index.ts"],"names":[],"mappings":";;;AAAA,qDAA4C;AAAnC,0GAAA,OAAO,OAAA;AAChB,uDAA8C;AAArC,4GAAA,QAAQ,OAAA;AACjB,iEAAwD;AAA/C,sHAAA,aAAa,OAAA;AACtB,2DAAwD;AAA/C,sHAAA,gBAAgB,OAAA;AACzB,6DAA0D;AAAjD,wHAAA,iBAAiB,OAAA;AAC1B,uDAA+C;AAAtC,6GAAA,SAAS,OAAA;AAElB,0EAAsE;AAA7D,6HAAA,mBAAmB,OAAA;AAC5B,0EAAuE;AAA9D,8HAAA,oBAAoB,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/command/index.ts"],"names":[],"mappings":";;;AAAA,2CAAmC;AAA1B,iGAAA,GAAG,OAAA;AACZ,6CAAqC;AAA5B,mGAAA,IAAI,OAAA;AACb,qDAA4C;AAAnC,0GAAA,OAAO,OAAA;AAChB,uDAA8C;AAArC,4GAAA,QAAQ,OAAA;AACjB,iEAAwD;AAA/C,sHAAA,aAAa,OAAA;AACtB,2DAAwD;AAA/C,sHAAA,gBAAgB,OAAA;AACzB,6DAA0D;AAAjD,wHAAA,iBAAiB,OAAA;AAC1B,uDAA+C;AAAtC,6GAAA,SAAS,OAAA;AAElB,0EAAsE;AAA7D,6HAAA,mBAAmB,OAAA;AAC5B,0EAAuE;AAA9D,8HAAA,oBAAoB,OAAA"}
|
|
@@ -6,7 +6,7 @@ const testID$$Index = (testID, index, context = browser) => (0, test_ids_command
|
|
|
6
6
|
if (index >= elements.length || index < 0) {
|
|
7
7
|
throw new Error(`Cannot get item by testID "${testID}" with index "${index}"`);
|
|
8
8
|
}
|
|
9
|
-
return elements[index];
|
|
9
|
+
return $(elements[index]);
|
|
10
10
|
});
|
|
11
11
|
exports.testID$$Index = testID$$Index;
|
|
12
12
|
//# sourceMappingURL=test-id-index.command.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-id-index.command.js","sourceRoot":"","sources":["../../../src/command/test-id-index.command.ts"],"names":[],"mappings":";;;AAAA,yDAA8C;AAKvC,MAAM,aAAa,GAAuB,CAAC,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,EAAE,EAAE,CAClF,IAAA,2BAAQ,EAAC,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE;IACtC,IAAI,KAAK,IAAI,QAAQ,CAAC,MAAM,IAAI,KAAK,GAAG,CAAC,EAAE;QACvC,MAAM,IAAI,KAAK,CAAC,8BAA8B,MAAM,iBAAiB,KAAK,GAAG,CAAC,CAAC;KAClF;IAED,OAAO,QAAQ,CAAC,KAAK,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"test-id-index.command.js","sourceRoot":"","sources":["../../../src/command/test-id-index.command.ts"],"names":[],"mappings":";;;AAAA,yDAA8C;AAKvC,MAAM,aAAa,GAAuB,CAAC,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,EAAE,EAAE,CAClF,IAAA,2BAAQ,EAAC,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE;IACtC,IAAI,KAAK,IAAI,QAAQ,CAAC,MAAM,IAAI,KAAK,GAAG,CAAC,EAAE;QACvC,MAAM,IAAI,KAAK,CAAC,8BAA8B,MAAM,iBAAiB,KAAK,GAAG,CAAC,CAAC;KAClF;IAED,OAAO,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;AAC9B,CAAC,CAAiD,CAAC;AAP1C,QAAA,aAAa,iBAO6B"}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
/// <reference types="webdriverio/async" />
|
|
2
2
|
import type { ElSelectorFn, ElsIndexSelectorFn, ElsSelectorFn } from '../../type';
|
|
3
3
|
import type { ClickArgs, ComponentConfigInterface, SetValueArgs, WaitForDisplayedArgs, WaitForEnabledArgs, WaitForExistArgs } from '../type';
|
|
4
|
-
import type { Enum } from '@rnw-community/shared';
|
|
5
4
|
import type { ChainablePromiseArray, ChainablePromiseElement } from 'webdriverio';
|
|
6
5
|
import type { Location } from 'webdriverio/build/commands/element/getLocation';
|
|
7
6
|
import type { Size } from 'webdriverio/build/commands/element/getSize';
|
|
8
7
|
export declare class Component<T = any> {
|
|
9
|
-
selectors:
|
|
8
|
+
selectors: T;
|
|
10
9
|
protected elSelectorFn: ElSelectorFn;
|
|
11
10
|
protected elsSelectorFn: ElsSelectorFn;
|
|
12
11
|
protected elsIndexSelectorFn: ElsIndexSelectorFn;
|
|
13
12
|
protected parentComponents: Component[];
|
|
14
|
-
constructor(config: ComponentConfigInterface, selectors:
|
|
13
|
+
constructor(config: ComponentConfigInterface, selectors: T);
|
|
15
14
|
addParentComponent(component: Component): void;
|
|
16
15
|
clickChildEl(selector: string, ...args: ClickArgs): Promise<void>;
|
|
17
16
|
clickByIdxChildEl(selector: string, idx: number, ...args: ClickArgs): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../../src/component/component/component.ts"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAClF,OAAO,KAAK,EACR,SAAS,EACT,wBAAwB,EACxB,YAAY,EACZ,oBAAoB,EACpB,kBAAkB,EAClB,gBAAgB,EACnB,MAAM,SAAS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,CAAC,OAAO,CAAC;IAItD,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAIrD,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAIjD,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC;IAI/E,uBAAuB,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC;IAIvF,qBAAqB,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC;IAInF,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC;IAIvD,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIrD,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,uBAAuB,CAAC,WAAW,CAAC,OAAO,CAAC;IAI1E,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,qBAAqB,CAAC,WAAW,CAAC,YAAY,CAAC;IAI9E,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,uBAAuB,CAAC,WAAW,CAAC,OAAO,CAAC;CAG/F"}
|
|
@@ -17,9 +17,11 @@ class Component {
|
|
|
17
17
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
18
18
|
return Reflect.get(client, field, receiver);
|
|
19
19
|
}
|
|
20
|
+
// @ts-expect-error TODO: Can we improve this types? We need this to be T for IDE intellisense support
|
|
20
21
|
const selectorValue = client.selectors[field];
|
|
21
22
|
if (!(0, shared_1.isDefined)(selectorValue)) {
|
|
22
23
|
for (const parentComponent of client.parentComponents) {
|
|
24
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
23
25
|
const parentComponentValue = parentComponent.selectors[field];
|
|
24
26
|
if (field in parentComponent) {
|
|
25
27
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../src/component/component/component.ts"],"names":[],"mappings":";;;AAAA,kDAAkD;
|
|
1
|
+
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../src/component/component/component.ts"],"names":[],"mappings":";;;AAAA,kDAAkD;AAelD,8DAA8D;AAC9D,MAAa,SAAS;IAMlB,YAAY,MAAgC,EAAS,SAAY;QAAZ,cAAS,GAAT,SAAS,CAAG;QAFvD,qBAAgB,GAAgB,EAAE,CAAC;QAGzC,IAAI,CAAC,YAAY,GAAG,MAAM,CAAC,YAAY,CAAC;QACxC,IAAI,CAAC,aAAa,GAAG,MAAM,CAAC,aAAa,CAAC;QAC1C,IAAI,CAAC,kBAAkB,GAAG,MAAM,CAAC,kBAAkB,CAAC;QAEpD,iDAAiD;QACjD,OAAO,IAAI,KAAK,CAAC,IAAI,EAAE;YACnB,GAAG,CAAC,MAAM,EAAE,KAAa,EAAE,QAAQ;gBAC/B,IAAI,KAAK,IAAI,MAAM,EAAE;oBACjB,+DAA+D;oBAC/D,OAAO,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;iBAC/C;gBAED,sGAAsG;gBACtG,MAAM,aAAa,GAAG,MAAM,CAAC,SAAS,CAAC,KAAK,CAAsB,CAAC;gBACnE,IAAI,CAAC,IAAA,kBAAS,EAAC,aAAa,CAAC,EAAE;oBAC3B,KAAK,MAAM,eAAe,IAAI,MAAM,CAAC,gBAAgB,EAAE;wBACnD,sEAAsE;wBACtE,MAAM,oBAAoB,GAAG,eAAe,CAAC,SAAS,CAAC,KAAK,CAAsB,CAAC;wBAEnF,IAAI,KAAK,IAAI,eAAe,EAAE;4BAC1B,+DAA+D;4BAC/D,OAAO,O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B,OAAO,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IACxC,CAAC;IAED,eAAe,CAAC,QAAgB,EAAE,GAAW;QACzC,OAAO,IAAI,CAAC,kBAAkB,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IAClD,CAAC;CACJ;AAvHD,8BAuHC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ComponentConfigInterface, ComponentWithSelectorsCtor } from '../../type';
|
|
2
|
-
export declare const getComponent: <T>(selectors: T, config?: ComponentConfigInterface) =>
|
|
2
|
+
export declare const getComponent: <T>(selectors: T, config?: ComponentConfigInterface) => new () => import("../../type").ComponentWithSelectors<T>;
|
|
3
3
|
//# sourceMappingURL=get-component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-component.d.ts","sourceRoot":"","sources":["../../../../../src/component/component/get-component/get-component.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,wBAAwB,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;AAEvF,eAAO,MAAM,YAAY,6BAEb,wBAAwB,
|
|
1
|
+
{"version":3,"file":"get-component.d.ts","sourceRoot":"","sources":["../../../../../src/component/component/get-component/get-component.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,wBAAwB,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;AAEvF,eAAO,MAAM,YAAY,6BAEb,wBAAwB,6DACkD,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { MockComponentSelectors } from './mock-component.selectors';
|
|
2
|
+
import { MockParentComponent } from './mock-parent-component';
|
|
3
|
+
declare const MockComponent_base: new () => MockParentComponent & import("../../component").Component<typeof MockComponentSelectors> & Record<"Root" | "Button", import("../../../type").SelectorObject>;
|
|
4
|
+
export declare class MockComponent extends MockComponent_base {
|
|
5
|
+
}
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=mock-component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mock-component.d.ts","sourceRoot":"","sources":["../../../../../../src/component/component/get-exteded-component/__mocks__/mock-component.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;;AAE9D,qBAAa,aAAc,SAAQ,kBAAiE;CAAG"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MockComponent = void 0;
|
|
4
|
+
const get_extended_component_1 = require("../get-extended-component");
|
|
5
|
+
const mock_component_selectors_1 = require("./mock-component.selectors");
|
|
6
|
+
const mock_parent_component_1 = require("./mock-parent-component");
|
|
7
|
+
class MockComponent extends (0, get_extended_component_1.getExtendedComponent)(mock_component_selectors_1.MockComponentSelectors, mock_parent_component_1.MockParentComponent) {
|
|
8
|
+
}
|
|
9
|
+
exports.MockComponent = MockComponent;
|
|
10
|
+
//# sourceMappingURL=mock-component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mock-component.js","sourceRoot":"","sources":["../../../../../../src/component/component/get-exteded-component/__mocks__/mock-component.ts"],"names":[],"mappings":";;;AAAA,sEAAiE;AAEjE,yEAAoE;AACpE,mEAA8D;AAE9D,MAAa,aAAc,SAAQ,IAAA,6CAAoB,EAAC,iDAAsB,EAAE,2CAAmB,CAAC;CAAG;AAAvG,sCAAuG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mock-component.selectors.d.ts","sourceRoot":"","sources":["../../../../../../src/component/component/get-exteded-component/__mocks__/mock-component.selectors.ts"],"names":[],"mappings":"AAAA,oBAAY,sBAAsB;IAC9B,MAAM,kCAAkC;IACxC,IAAI,gCAAgC;CACvC"}
|
package/dist/cjs/component/component/get-exteded-component/__mocks__/mock-component.selectors.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MockComponentSelectors = void 0;
|
|
4
|
+
var MockComponentSelectors;
|
|
5
|
+
(function (MockComponentSelectors) {
|
|
6
|
+
MockComponentSelectors["Button"] = "TestComponentSelectors.Button";
|
|
7
|
+
MockComponentSelectors["Root"] = "TestComponentSelectors.Root";
|
|
8
|
+
})(MockComponentSelectors = exports.MockComponentSelectors || (exports.MockComponentSelectors = {}));
|
|
9
|
+
//# sourceMappingURL=mock-component.selectors.js.map
|
package/dist/cjs/component/component/get-exteded-component/__mocks__/mock-component.selectors.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mock-component.selectors.js","sourceRoot":"","sources":["../../../../../../src/component/component/get-exteded-component/__mocks__/mock-component.selectors.ts"],"names":[],"mappings":";;;AAAA,IAAY,sBAGX;AAHD,WAAY,sBAAsB;IAC9B,kEAAwC,CAAA;IACxC,8DAAoC,CAAA;AACxC,CAAC,EAHW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAGjC"}
|
package/dist/cjs/component/component/get-exteded-component/__mocks__/mock-parent-component.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Component } from '../../component';
|
|
2
|
+
import { MockParentComponentSelectors } from './mock-parent-component.selectors';
|
|
3
|
+
declare const MockParentComponent_base: new () => Component<any> & Component<typeof MockParentComponentSelectors> & Record<"Root" | "ParentButton", import("../../../type").SelectorObject>;
|
|
4
|
+
export declare class MockParentComponent extends MockParentComponent_base {
|
|
5
|
+
private data;
|
|
6
|
+
get ParentField(): string;
|
|
7
|
+
set ParentField(newData: string);
|
|
8
|
+
parentMethod(): string;
|
|
9
|
+
}
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=mock-parent-component.d.ts.map
|
package/dist/cjs/component/component/get-exteded-component/__mocks__/mock-parent-component.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mock-parent-component.d.ts","sourceRoot":"","sources":["../../../../../../src/component/component/get-exteded-component/__mocks__/mock-parent-component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;;AAEjF,qBAAa,mBAAoB,SAAQ,wBAA6D;IAClG,OAAO,CAAC,IAAI,CAAuB;IAEnC,IAAI,WAAW,IAAI,MAAM,CAExB;IAED,IAAI,WAAW,CAAC,OAAO,EAAE,MAAM,EAE9B;IAED,YAAY,IAAI,MAAM;CAGzB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MockParentComponent = void 0;
|
|
4
|
+
const component_1 = require("../../component");
|
|
5
|
+
const get_extended_component_1 = require("../get-extended-component");
|
|
6
|
+
const mock_parent_component_selectors_1 = require("./mock-parent-component.selectors");
|
|
7
|
+
class MockParentComponent extends (0, get_extended_component_1.getExtendedComponent)(mock_parent_component_selectors_1.MockParentComponentSelectors, component_1.Component) {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
this.data = 'InitialParentData';
|
|
11
|
+
}
|
|
12
|
+
get ParentField() {
|
|
13
|
+
return this.data;
|
|
14
|
+
}
|
|
15
|
+
set ParentField(newData) {
|
|
16
|
+
this.data = newData;
|
|
17
|
+
}
|
|
18
|
+
parentMethod() {
|
|
19
|
+
return this.data;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.MockParentComponent = MockParentComponent;
|
|
23
|
+
//# sourceMappingURL=mock-parent-component.js.map
|
package/dist/cjs/component/component/get-exteded-component/__mocks__/mock-parent-component.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mock-parent-component.js","sourceRoot":"","sources":["../../../../../../src/component/component/get-exteded-component/__mocks__/mock-parent-component.ts"],"names":[],"mappings":";;;AAAA,+CAA4C;AAC5C,sEAAiE;AAEjE,uFAAiF;AAEjF,MAAa,mBAAoB,SAAQ,IAAA,6CAAoB,EAAC,8DAA4B,EAAE,qBAAS,CAAC;IAAtG;;QACY,SAAI,GAAG,mBAAmB,CAAC;IAavC,CAAC;IAXG,IAAI,WAAW;QACX,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IAED,IAAI,WAAW,CAAC,OAAe;QAC3B,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC;IACxB,CAAC;IAED,YAAY;QACR,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;CACJ;AAdD,kDAcC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mock-parent-component.selectors.d.ts","sourceRoot":"","sources":["../../../../../../src/component/component/get-exteded-component/__mocks__/mock-parent-component.selectors.ts"],"names":[],"mappings":"AAAA,oBAAY,4BAA4B;IACpC,YAAY,8CAA8C;IAC1D,IAAI,sCAAsC;CAC7C"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MockParentComponentSelectors = void 0;
|
|
4
|
+
var MockParentComponentSelectors;
|
|
5
|
+
(function (MockParentComponentSelectors) {
|
|
6
|
+
MockParentComponentSelectors["ParentButton"] = "MockParentComponentSelectors.ParentButton";
|
|
7
|
+
MockParentComponentSelectors["Root"] = "MockParentComponentSelectors.Root";
|
|
8
|
+
})(MockParentComponentSelectors = exports.MockParentComponentSelectors || (exports.MockParentComponentSelectors = {}));
|
|
9
|
+
//# sourceMappingURL=mock-parent-component.selectors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mock-parent-component.selectors.js","sourceRoot":"","sources":["../../../../../../src/component/component/get-exteded-component/__mocks__/mock-parent-component.selectors.ts"],"names":[],"mappings":";;;AAAA,IAAY,4BAGX;AAHD,WAAY,4BAA4B;IACpC,0FAA0D,CAAA;IAC1D,0EAA0C,CAAA;AAC9C,CAAC,EAHW,4BAA4B,GAA5B,oCAA4B,KAA5B,oCAA4B,QAGvC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-extended-component.js","sourceRoot":"","sources":["../../../../../src/component/component/get-exteded-component/get-extended-component.ts"],"names":[],"mappings":";;;AAAA,6EAAwE;AACxE,4CAAyC;AAKlC,MAAM,oBAAoB,GAAG,CAChC,SAAY,EACZ,eAA6B,EAC7B,SAAmC,IAAA,iDAAsB,GAAE,EAC3B,EAAE;AAClC,mDAAmD;AACnD,KAAM,SAAQ,
|
|
1
|
+
{"version":3,"file":"get-extended-component.js","sourceRoot":"","sources":["../../../../../src/component/component/get-exteded-component/get-extended-component.ts"],"names":[],"mappings":";;;AAAA,6EAAwE;AACxE,4CAAyC;AAKlC,MAAM,oBAAoB,GAAG,CAChC,SAAY,EACZ,eAA6B,EAC7B,SAAmC,IAAA,iDAAsB,GAAE,EAC3B,EAAE;AAClC,mDAAmD;AACnD,KAAM,SAAQ,qBAAY;IACtB;QACI,KAAK,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;QAEzB,IAAI,eAAe,KAAK,qBAAS,EAAE;YAC/B,IAAI,CAAC,kBAAkB,CAAC,IAAI,eAAe,EAAE,CAAC,CAAC;SAClD;IACL,CAAC;CACJ,CAAC;AAdO,QAAA,oBAAoB,wBAc3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default$-component.config.d.ts","sourceRoot":"","sources":["../../../src/component/default$-component.config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"default$-component.config.d.ts","sourceRoot":"","sources":["../../../src/component/default$-component.config.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,QAAQ,CAAC;AAEvD,eAAO,MAAM,uBAAuB,EAAE,MAAM,wBAI1C,CAAC"}
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.default$ComponentConfig = void 0;
|
|
4
4
|
const command_1 = require("../command");
|
|
5
5
|
const default$ComponentConfig = () => ({
|
|
6
|
-
elSelectorFn: $,
|
|
7
|
-
elsSelectorFn:
|
|
6
|
+
elSelectorFn: command_1.el$,
|
|
7
|
+
elsSelectorFn: command_1.els$,
|
|
8
8
|
elsIndexSelectorFn: command_1.byIndex$$,
|
|
9
9
|
});
|
|
10
10
|
exports.default$ComponentConfig = default$ComponentConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default$-component.config.js","sourceRoot":"","sources":["../../../src/component/default$-component.config.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"default$-component.config.js","sourceRoot":"","sources":["../../../src/component/default$-component.config.ts"],"names":[],"mappings":";;;AAAA,wCAAkD;AAI3C,MAAM,uBAAuB,GAAmC,GAAG,EAAE,CAAC,CAAC;IAC1E,YAAY,EAAE,aAAG;IACjB,aAAa,EAAE,cAAI;IACnB,kBAAkB,EAAE,mBAAS;CAChC,CAAC,CAAC;AAJU,QAAA,uBAAuB,2BAIjC"}
|
package/dist/cjs/component/rooted-component/get$-rooted-component/get$-rooted-component.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { RootedComponentWithSelectorsCtor } from '../../type';
|
|
2
|
-
export declare const get$RootedComponent: <T>(selectors: T) => RootedComponentWithSelectorsCtor<T,
|
|
2
|
+
export declare const get$RootedComponent: <T>(selectors: T) => RootedComponentWithSelectorsCtor<T, import("../rooted-component").RootedComponent<T>>;
|
|
3
3
|
//# sourceMappingURL=get$-rooted-component.d.ts.map
|
package/dist/cjs/component/rooted-component/get$-rooted-component/get$-rooted-component.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get$-rooted-component.d.ts","sourceRoot":"","sources":["../../../../../src/component/rooted-component/get$-rooted-component/get$-rooted-component.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,YAAY,CAAC;AAEnE,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"get$-rooted-component.d.ts","sourceRoot":"","sources":["../../../../../src/component/rooted-component/get$-rooted-component/get$-rooted-component.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,YAAY,CAAC;AAEnE,eAAO,MAAM,mBAAmB,4GAC4B,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { MockRootedComponentSelectors } from './mock-rooted-component.selectors';
|
|
2
|
+
import { MockRootedParentComponent } from './mock-rooted-parent-component';
|
|
3
|
+
declare const MockRootedComponent_base: import("../../../type").RootedComponentWithSelectorsCtor<typeof MockRootedComponentSelectors, MockRootedParentComponent>;
|
|
4
|
+
export declare class MockRootedComponent extends MockRootedComponent_base {
|
|
5
|
+
constructor();
|
|
6
|
+
}
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=mock-rooted-component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mock-rooted-component.d.ts","sourceRoot":"","sources":["../../../../../../src/component/rooted-component/get-extended-rooted-component/__mocks__/mock-rooted-component.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACjF,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;;AAE3E,qBAAa,mBAAoB,SAAQ,wBAGxC;;CAIA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MockRootedComponent = void 0;
|
|
4
|
+
const get_extended_rooted_component_1 = require("../get-extended-rooted-component");
|
|
5
|
+
const mock_rooted_component_selectors_1 = require("./mock-rooted-component.selectors");
|
|
6
|
+
const mock_rooted_parent_component_1 = require("./mock-rooted-parent-component");
|
|
7
|
+
class MockRootedComponent extends (0, get_extended_rooted_component_1.getExtendedRootedComponent)(mock_rooted_component_selectors_1.MockRootedComponentSelectors, mock_rooted_parent_component_1.MockRootedParentComponent) {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(mock_rooted_component_selectors_1.MockRootedComponentSelectors.CustomRoot);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.MockRootedComponent = MockRootedComponent;
|
|
13
|
+
//# sourceMappingURL=mock-rooted-component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mock-rooted-component.js","sourceRoot":"","sources":["../../../../../../src/component/rooted-component/get-extended-rooted-component/__mocks__/mock-rooted-component.ts"],"names":[],"mappings":";;;AAAA,oFAA8E;AAE9E,uFAAiF;AACjF,iFAA2E;AAE3E,MAAa,mBAAoB,SAAQ,IAAA,0DAA0B,EAC/D,8DAA4B,EAC5B,wDAAyB,CAC5B;IACG;QACI,KAAK,CAAC,8DAA4B,CAAC,UAAU,CAAC,CAAC;IACnD,CAAC;CACJ;AAPD,kDAOC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare enum MockRootedComponentSelectors {
|
|
2
|
+
Button = "MockRootedComponentSelectors.Button",
|
|
3
|
+
CustomRoot = "MockRootedComponentSelectors.CustomRoot",
|
|
4
|
+
Root = "MockRootedComponentSelectors.Root"
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=mock-rooted-component.selectors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mock-rooted-component.selectors.d.ts","sourceRoot":"","sources":["../../../../../../src/component/rooted-component/get-extended-rooted-component/__mocks__/mock-rooted-component.selectors.ts"],"names":[],"mappings":"AAAA,oBAAY,4BAA4B;IACpC,MAAM,wCAAwC;IAC9C,UAAU,4CAA4C;IACtD,IAAI,sCAAsC;CAC7C"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MockRootedComponentSelectors = void 0;
|
|
4
|
+
var MockRootedComponentSelectors;
|
|
5
|
+
(function (MockRootedComponentSelectors) {
|
|
6
|
+
MockRootedComponentSelectors["Button"] = "MockRootedComponentSelectors.Button";
|
|
7
|
+
MockRootedComponentSelectors["CustomRoot"] = "MockRootedComponentSelectors.CustomRoot";
|
|
8
|
+
MockRootedComponentSelectors["Root"] = "MockRootedComponentSelectors.Root";
|
|
9
|
+
})(MockRootedComponentSelectors = exports.MockRootedComponentSelectors || (exports.MockRootedComponentSelectors = {}));
|
|
10
|
+
//# sourceMappingURL=mock-rooted-component.selectors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mock-rooted-component.selectors.js","sourceRoot":"","sources":["../../../../../../src/component/rooted-component/get-extended-rooted-component/__mocks__/mock-rooted-component.selectors.ts"],"names":[],"mappings":";;;AAAA,IAAY,4BAIX;AAJD,WAAY,4BAA4B;IACpC,8EAA8C,CAAA;IAC9C,sFAAsD,CAAA;IACtD,0EAA0C,CAAA;AAC9C,CAAC,EAJW,4BAA4B,GAA5B,oCAA4B,KAA5B,oCAA4B,QAIvC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { RootedComponent } from '../../rooted-component';
|
|
2
|
+
import { MockRootedParentComponentSelectors } from './mock-rooted-parent-component.selectors';
|
|
3
|
+
declare const MockRootedParentComponent_base: import("../../../type").RootedComponentWithSelectorsCtor<typeof MockRootedParentComponentSelectors, RootedComponent<any>>;
|
|
4
|
+
export declare class MockRootedParentComponent extends MockRootedParentComponent_base {
|
|
5
|
+
private data;
|
|
6
|
+
get ParentField(): string;
|
|
7
|
+
set ParentField(newData: string);
|
|
8
|
+
parentMethod(): string;
|
|
9
|
+
}
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=mock-rooted-parent-component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mock-rooted-parent-component.d.ts","sourceRoot":"","sources":["../../../../../../src/component/rooted-component/get-extended-rooted-component/__mocks__/mock-rooted-parent-component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAGzD,OAAO,EAAE,kCAAkC,EAAE,MAAM,0CAA0C,CAAC;;AAE9F,qBAAa,yBAA0B,SAAQ,8BAG9C;IACG,OAAO,CAAC,IAAI,CAAuB;IAEnC,IAAI,WAAW,IAAI,MAAM,CAExB;IAED,IAAI,WAAW,CAAC,OAAO,EAAE,MAAM,EAE9B;IAED,YAAY,IAAI,MAAM;CAGzB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MockRootedParentComponent = void 0;
|
|
4
|
+
const rooted_component_1 = require("../../rooted-component");
|
|
5
|
+
const get_extended_rooted_component_1 = require("../get-extended-rooted-component");
|
|
6
|
+
const mock_rooted_parent_component_selectors_1 = require("./mock-rooted-parent-component.selectors");
|
|
7
|
+
class MockRootedParentComponent extends (0, get_extended_rooted_component_1.getExtendedRootedComponent)(mock_rooted_parent_component_selectors_1.MockRootedParentComponentSelectors, rooted_component_1.RootedComponent) {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
this.data = 'InitialParentData';
|
|
11
|
+
}
|
|
12
|
+
get ParentField() {
|
|
13
|
+
return this.data;
|
|
14
|
+
}
|
|
15
|
+
set ParentField(newData) {
|
|
16
|
+
this.data = newData;
|
|
17
|
+
}
|
|
18
|
+
parentMethod() {
|
|
19
|
+
return this.data;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.MockRootedParentComponent = MockRootedParentComponent;
|
|
23
|
+
//# sourceMappingURL=mock-rooted-parent-component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mock-rooted-parent-component.js","sourceRoot":"","sources":["../../../../../../src/component/rooted-component/get-extended-rooted-component/__mocks__/mock-rooted-parent-component.ts"],"names":[],"mappings":";;;AAAA,6DAAyD;AACzD,oFAA8E;AAE9E,qGAA8F;AAE9F,MAAa,yBAA0B,SAAQ,IAAA,0DAA0B,EACrE,2EAAkC,EAClC,kCAAe,CAClB;IAHD;;QAIY,SAAI,GAAG,mBAAmB,CAAC;IAavC,CAAC;IAXG,IAAI,WAAW;QACX,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IAED,IAAI,WAAW,CAAC,OAAe;QAC3B,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC;IACxB,CAAC;IAED,YAAY;QACR,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;CACJ;AAjBD,8DAiBC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mock-rooted-parent-component.selectors.d.ts","sourceRoot":"","sources":["../../../../../../src/component/rooted-component/get-extended-rooted-component/__mocks__/mock-rooted-parent-component.selectors.ts"],"names":[],"mappings":"AAAA,oBAAY,kCAAkC;IAC1C,YAAY,oDAAoD;IAChE,UAAU,4CAA4C;CACzD"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MockRootedParentComponentSelectors = void 0;
|
|
4
|
+
var MockRootedParentComponentSelectors;
|
|
5
|
+
(function (MockRootedParentComponentSelectors) {
|
|
6
|
+
MockRootedParentComponentSelectors["ParentButton"] = "MockRootedParentComponentSelectors.ParentButton";
|
|
7
|
+
MockRootedParentComponentSelectors["ParentRoot"] = "MockRootedParentComponentSelectors.Root";
|
|
8
|
+
})(MockRootedParentComponentSelectors = exports.MockRootedParentComponentSelectors || (exports.MockRootedParentComponentSelectors = {}));
|
|
9
|
+
//# sourceMappingURL=mock-rooted-parent-component.selectors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mock-rooted-parent-component.selectors.js","sourceRoot":"","sources":["../../../../../../src/component/rooted-component/get-extended-rooted-component/__mocks__/mock-rooted-parent-component.selectors.ts"],"names":[],"mappings":";;;AAAA,IAAY,kCAGX;AAHD,WAAY,kCAAkC;IAC1C,sGAAgE,CAAA;IAChE,4FAAsD,CAAA;AAC1D,CAAC,EAHW,kCAAkC,GAAlC,0CAAkC,KAAlC,0CAAkC,QAG7C"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { RootedComponent } from '../rooted-component';
|
|
1
2
|
import type { ComponentConfigInterface, RootedComponentWithSelectorsCtor } from '../../type';
|
|
2
|
-
export declare const getRootedComponent: <T>(selectors: T, config?: ComponentConfigInterface) => RootedComponentWithSelectorsCtor<T,
|
|
3
|
+
export declare const getRootedComponent: <T>(selectors: T, config?: ComponentConfigInterface) => RootedComponentWithSelectorsCtor<T, RootedComponent<T>>;
|
|
3
4
|
//# sourceMappingURL=get-rooted-component.d.ts.map
|
package/dist/cjs/component/rooted-component/get-rooted-component/get-rooted-component.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-rooted-component.d.ts","sourceRoot":"","sources":["../../../../../src/component/rooted-component/get-rooted-component/get-rooted-component.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-rooted-component.d.ts","sourceRoot":"","sources":["../../../../../src/component/rooted-component/get-rooted-component/get-rooted-component.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD,OAAO,KAAK,EAAE,wBAAwB,EAAE,gCAAgC,EAAE,MAAM,YAAY,CAAC;AAE7F,eAAO,MAAM,kBAAkB,6BAEnB,wBAAwB,4DACoE,CAAC"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/// <reference types="webdriverio/async" />
|
|
2
2
|
import { Component } from '../component/component';
|
|
3
3
|
import type { ClickArgs, ComponentConfigInterface, ComponentInputArg, WaitForDisplayedArgs, WaitForEnabledArgs, WaitForExistArgs } from '../type';
|
|
4
|
-
import type { Enum } from '@rnw-community/shared';
|
|
5
4
|
import type { ChainablePromiseArray, ChainablePromiseElement } from 'webdriverio';
|
|
6
5
|
export declare class RootedComponent<T = any> extends Component<T> {
|
|
7
|
-
selectors:
|
|
6
|
+
selectors: T;
|
|
8
7
|
protected readonly parentElInput: ComponentInputArg;
|
|
9
|
-
constructor(config: ComponentConfigInterface, selectors:
|
|
8
|
+
constructor(config: ComponentConfigInterface, selectors: T, selectorOrElement?: ComponentInputArg | undefined);
|
|
10
9
|
get RootEl(): ChainablePromiseElement<WebdriverIO.Element>;
|
|
11
10
|
waitForDisplayed(...args: WaitForDisplayedArgs): Promise<void>;
|
|
12
11
|
waitForEnabled(...args: WaitForEnabledArgs): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rooted-component.d.ts","sourceRoot":"","sources":["../../../../src/component/rooted-component/rooted-component.ts"],"names":[],"mappings":";
|
|
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;AAGnD,OAAO,KAAK,EACR,SAAS,EACT,wBAAwB,EACxB,iBAAiB,EACjB,oBAAoB,EACpB,kBAAkB,EAClB,gBAAgB,EACnB,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAGlF,qBAAa,eAAe,CAAC,CAAC,GAAG,GAAG,CAAE,SAAQ,SAAS,CAAC,CAAC,CAAC;IAKlC,SAAS,EAAE,CAAC;IAJhC,SAAS,CAAC,QAAQ,CAAC,aAAa,EAAE,iBAAiB,CAAC;gBAGhD,MAAM,EAAE,wBAAwB,EAChB,SAAS,EAAE,CAAC,EAC5B,iBAAiB,GAAE,iBAAiB,GAAG,SAA2C;IAWtF,IAAI,MAAM,IAAI,uBAAuB,CAAC,WAAW,CAAC,OAAO,CAAC,CASzD;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;IAIrC,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,uBAAuB,CAAC,WAAW,CAAC,OAAO,CAAC;IAI1E,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,qBAAqB,CAAC,WAAW,CAAC,YAAY,CAAC;IAI9E,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,uBAAuB,CAAC,WAAW,CAAC,OAAO,CAAC;CAGxG"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.RootedComponent = void 0;
|
|
4
4
|
const shared_1 = require("@rnw-community/shared");
|
|
5
|
+
const command_1 = require("../../command");
|
|
5
6
|
const component_1 = require("../component/component");
|
|
6
7
|
const util_1 = require("../util");
|
|
7
8
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -21,7 +22,8 @@ class RootedComponent extends component_1.Component {
|
|
|
21
22
|
else if ('then' in this.parentElInput) {
|
|
22
23
|
return this.parentElInput;
|
|
23
24
|
}
|
|
24
|
-
|
|
25
|
+
// @ts-expect-error Temp we need a way to create a chain from Webdriver.IO element
|
|
26
|
+
return (0, command_1.el$)(this.parentElInput);
|
|
25
27
|
}
|
|
26
28
|
async waitForDisplayed(...args) {
|
|
27
29
|
await (await this.RootEl).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,sDAAmD;AACnD,kCAA+C;
|
|
1
|
+
{"version":3,"file":"rooted-component.js","sourceRoot":"","sources":["../../../../src/component/rooted-component/rooted-component.ts"],"names":[],"mappings":";;;AAAA,kDAAoE;AAEpE,2CAAoC;AACpC,sDAAmD;AACnD,kCAA+C;AAY/C,8DAA8D;AAC9D,MAAa,eAAyB,SAAQ,qBAAY;IAGtD,YACI,MAAgC,EAChB,SAAY,EAC5B,oBAAmD,IAAA,2BAAoB,EAAC,SAAS,CAAC;QAElF,IAAI,CAAC,IAAA,kBAAS,EAAC,iBAAiB,CAAC,EAAE;YAC/B,MAAM,IAAI,KAAK,CAAC,kFAAkF,CAAC,CAAC;SACvG;QAED,KAAK,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;QAPT,cAAS,GAAT,SAAS,CAAG;QAS5B,IAAI,CAAC,aAAa,GAAG,iBAAiB,CAAC;IAC3C,CAAC;IAED,IAAI,MAAM;QACN,IAAI,IAAA,yBAAgB,EAAC,IAAI,CAAC,aAAa,CAAC,EAAE;YACtC,OAAO,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;SAChD;aAAM,IAAI,MAAM,IAAI,IAAI,CAAC,aAAa,EAAE;YACrC,OAAO,IAAI,CAAC,aAAa,CAAC;SAC7B;QAED,kFAAkF;QAClF,OAAO,IAAA,aAAG,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC;IACnC,CAAC;IAED,KAAK,CAAC,gBAAgB,CAAC,GAAG,IAA0B;QAChD,MAAM,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC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WebdriverIO.Element> | string;
|
|
2
|
+
export declare type ComponentInputArg = ChainablePromiseElement<WebdriverIO.Element> | WebdriverIO.Element | string;
|
|
3
3
|
//# sourceMappingURL=component-input-arg.type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component-input-arg.type.d.ts","sourceRoot":"","sources":["../../../../src/component/type/component-input-arg.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAE3D,oBAAY,iBAAiB,GAAG,uBAAuB,CAAC,WAAW,CAAC,OAAO,CAAC,GAAG,MAAM,CAAC"}
|
|
1
|
+
{"version":3,"file":"component-input-arg.type.d.ts","sourceRoot":"","sources":["../../../../src/component/type/component-input-arg.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAE3D,oBAAY,iBAAiB,GAAG,uBAAuB,CAAC,WAAW,CAAC,OAAO,CAAC,GAAG,WAAW,CAAC,OAAO,GAAG,MAAM,CAAC"}
|