wix-style-react
Version:
wix-style-react
26 lines (25 loc) • 826 B
JavaScript
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();
}
};
};
export default TextLinkFactory;