wix-style-react
Version:
wix-style-react
16 lines • 933 B
JavaScript
import { baseUniDriverFactory } from '../test-utils/utils/unidriver';
import { calendarUniDriverFactory } from '../Calendar/Calendar.uni.driver';
import { dropdownLayoutDriverFactory } from '../DropdownLayout/DropdownLayout.uni.driver';
export const calendarPanelUniDriverFactory = base => {
const calendarElement = () => base.$('[data-hook=calendar]');
const getCalendarDriver = async () => calendarUniDriverFactory(calendarElement());
const dropdownLayoutElement = () => base.$('[data-hook=dropdown-layout]');
const dropdownLayoutDriver = () => dropdownLayoutDriverFactory(dropdownLayoutElement());
return {
...baseUniDriverFactory(base),
calendarDriver: async () => getCalendarDriver(),
presetsDropdownLayoutDriver: async () => dropdownLayoutDriver(),
isDropdownExists: async () => dropdownLayoutElement().exists(),
};
};
//# sourceMappingURL=CalendarPanel.uni.driver.js.map