wix-style-react
Version:
wix-style-react
31 lines (29 loc) • 909 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
var TextLinkFactory = function TextLinkFactory(component) {
return {
/* Returns the element */
element: function element() {
return component;
},
/* Returns the element's text content */
getText: function getText() {
return component.getText();
},
/* Hover the element with the mouse */
hover: function hover() {
return browser.actions().mouseMove(component).perform();
},
/* Returns `true` if a prefix icon exists */
isPrefixIconExists: function isPrefixIconExists() {
return component.$('[data-hook="prefix-icon"]').isPresent();
},
/* Returns `true` if a suffix icon exists */
isSuffixIconExists: function isSuffixIconExists() {
return component.$('[data-hook="suffix-icon"]').isPresent();
}
};
};
exports.default = TextLinkFactory;