@wix/design-system
Version:
@wix/design-system
21 lines • 795 B
JavaScript
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