wix-style-react
Version:
wix-style-react
17 lines (13 loc) • 508 B
JavaScript
import { StylableDOMUtil } from '@stylable/dom-test-kit';
import style from './Heading.st.css';
const headingDriverFactory = factoryParams => {
const stylableDOMUtil = new StylableDOMUtil(style);
const { element } = factoryParams;
return {
exists: () => !!element,
getText: () => element.innerHTML,
getAppearance: () => stylableDOMUtil.getStyleState(element, 'appearance'),
isLight: () => stylableDOMUtil.hasStyleState(element, 'light'),
};
};
export default headingDriverFactory;