import { baseUniDriverFactory, findByHook, } from '../utils/test-utils/unidriver';
import { DATA_HOOK } from './InputShell.constants';
export const inputShellDriverFactory = (base) => {
    return {
        ...baseUniDriverFactory(base),
        /**
         * Returns the tag name of the HTML element
         * @returns {Promise<string>}
         */
        getTagName: async () => (await base.prop('tagName')).toLowerCase(),
        /**
         * Returns true if dropdown arrow is displayed
         */
        hasMenuArrow: async () => {
            const component = findByHook(base, DATA_HOOK.menuArrow);
            return component.exists();
        },
        isDisabled: async () => (await base.prop('disabled')) === true,
    };
};
//# sourceMappingURL=InputShell.uni.driver.js.map