import { baseUniDriverFactory } from '../utils/test-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,
        getContentElement: () => base.$(`[data-hook="search-content"]`).unwrap(),
        driver: {
            ...inputWithOptionsUniDriver.driver,
            isExpandable: async () => !!(await base.attr('data-expandable')),
            isCollapsed: async () => !!(await base.attr('data-collapsed')),
        },
    };
};
//# sourceMappingURL=Search.uni.driver.js.map