wix-style-react
Version:
wix-style-react
14 lines (10 loc) • 423 B
JavaScript
import { isClassExists } from '../../test/utils';
const getAttribute = (element, attribute) => element.getAttribute(attribute);
const buttonLayoutDriverFactory = ({ element }) => {
return {
exists: () => !!element,
doesComponentHasClass: className => isClassExists(element, className),
getComponentAttribute: attribute => getAttribute(element, attribute),
};
};
export default buttonLayoutDriverFactory;