UNPKG

wix-style-react

Version:
18 lines (15 loc) 471 B
import publicDriverFactory, { getPrefix, getSuffix, } from '../SidebarSectionItem.uni.driver'; import { findByHook } from '../../../test/utils/unidriver'; import { dataHooks } from '../constants'; export default base => { return { ...publicDriverFactory(base), hasChevronRight: async () => await findByHook(base, dataHooks.chevronRight).exists(), hasPrefix: () => getPrefix(base).exists(), hasSuffix: () => getSuffix(base).exists(), }; };