UNPKG

wix-style-react

Version:
16 lines (13 loc) 534 B
import { sidebarSubMenuNextDriverFactory as publicDriverFactory } from '../SidebarSubMenuNext.uni.driver'; import { findByHook } from '../../../test/utils/unidriver'; import { dataHooks } from '../constants'; export const sidebarSubMenuNextPrivateDriverFactory = (base, body) => { return { ...publicDriverFactory(base, body), /** * Returns if the suffix is a chevron suffix * @returns {Promise<boolean>} */ isChevronExists: async () => (await findByHook(base, dataHooks.chevronRight)).exists(), }; };