UNPKG

wix-style-react

Version:
16 lines 555 B
import { baseUniDriverFactory, findByHook, } from '../test-utils/utils/unidriver'; import { dataHooks } from './constants'; export const sidebarDriverFactory = base => { return { ...baseUniDriverFactory(base), /** * Gets the current skin * @returns {Promise<string>} */ getSkin: async () => base.attr('data-skin'), isGradientDisplayed: async () => { return findByHook(base, dataHooks.scrollBarGradient).exists(); }, }; }; //# sourceMappingURL=Sidebar.uni.driver.js.map