wix-style-react
Version:
wix-style-react
25 lines (22 loc) • 693 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
var FieldWithSelectionCompositeDriverFactory = function FieldWithSelectionCompositeDriverFactory(component) {
var inputWrappers = component.$('[data-hook="input-wrappers"]');
return {
getLabel: function getLabel() {
return component.find('label');
},
getInput: function getInput() {
return inputWrappers.all(by.xpath('./div')).first();
},
getSelection: function getSelection() {
return inputWrappers.all(by.xpath('./div')).last();
},
element: function element() {
return component;
}
};
};
exports.default = FieldWithSelectionCompositeDriverFactory;