UNPKG

wix-style-react

Version:
15 lines (13 loc) 557 B
import { baseModalLayoutDriverFactory } from '../BaseModalLayout.uni.driver'; import { dataHooks } from '../constants'; export const baseModalLayoutPrivateDriverFactory = (base, body) => { return { ...baseModalLayoutDriverFactory(base, body), // Add here driver methods that considered "private" _hasClass: className => base.hasClass(className), _closeButtonExists: () => base.$(`[data-hook="${dataHooks.closeButton}"]`).exists(), _helpButtonExists: () => base.$(`[data-hook="${dataHooks.helpButton}"]`).exists(), }; };