import { DATA_HOOK } from './ListItemAction.constants';
import { baseUniDriverFactory, findByHook, } from '../utils/test-utils/unidriver';
// TODO: Add tooltipTestkitDriver when raising major version.
export const ListItemActionDriverFactory = (base) => {
    return {
        ...baseUniDriverFactory(base),
        isTitleExists: async () => findByHook(base, DATA_HOOK.title).exists(),
        getTitleText: async () => findByHook(base, DATA_HOOK.title).text(),
        isPrefixIconExists: async () => findByHook(base, DATA_HOOK.prefixIcon).exists(),
        isSuffixIconExists: async () => findByHook(base, DATA_HOOK.suffixIcon).exists(),
        isSubtitleExists: async () => findByHook(base, DATA_HOOK.subtitle).exists(),
        getSubtitleText: async () => findByHook(base, DATA_HOOK.subtitle).text(),
        isSuffixExists: async () => findByHook(base, DATA_HOOK.suffix).exists(),
        getSuffixText: () => findByHook(base, DATA_HOOK.suffix).text(),
        getSkin: () => base.attr('data-skin'),
        isDisabled: async () => (await base.attr('data-disabled')) === 'true',
        mouseEnter: async () => base.mouse.hover(),
        mouseLeave: async () => base.mouse.leave(),
    };
};
//# sourceMappingURL=ListItemAction.uni.driver.js.map