UNPKG

wix-style-react

Version:
15 lines 730 B
import { baseUniDriverFactory } from '../test-utils/utils/unidriver'; import { inputWithOptionsUniDriverFactory } from '../InputWithOptions/InputWithOptions.uni.driver'; export const searchUniDriverFactory = (base, body) => { const inputWithOptionsUniDriver = inputWithOptionsUniDriverFactory(base.$(`[data-hook="search-inputwithoptions"]`), body); return { ...baseUniDriverFactory(base), ...inputWithOptionsUniDriver, driver: { ...inputWithOptionsUniDriver.driver, isExpandable: async () => !!(await base.attr('data-expandable')), isCollapsed: async () => !!(await base.attr('data-collapsed')), }, }; }; //# sourceMappingURL=Search.uni.driver.js.map