UNPKG

@wix/design-system

Version:

@wix/design-system

32 lines 1.7 kB
import { UniDriver } from '@wix/wix-ui-test-utils/dist/types/unidriver'; export type DropdownBaseUniDriver = ReturnType<typeof dropdownBaseDriverFactory>; export declare const dropdownBaseDriverFactory: (base: UniDriver, body: UniDriver) => { /** Returns the list type prop value */ getListType: (dataHook: string) => Promise<string | null>; /** Returns the target element */ clickTargetElement: (dataHook: string) => Promise<void>; /** Hover the target element */ hoverTargetElement: (dataHook: string) => Promise<void>; /** Returns `true` if the dropdown is being shown */ isDropdownShown: () => Promise<boolean>; /** Select a specific option (requires the DropdownBase to be opened) */ selectOption: (index: number) => Promise<void>; /** Select a specific option by its data hook (requires the DropdownBase to be opened) */ selectOptionByDataHook: (dataHook: string) => Promise<void>; /** Click outside of the component */ clickOutside: () => Promise<void>; /** Options count (requires the DropdownBase to be opened) */ optionsCount: () => Promise<number>; optionContentAt: (position: number) => Promise<any>; /** Returns the selected option (requires the DropdownBase to be opened)*/ getSelectedOptionId: () => Promise<string | null>; /** Returns the marked option (requires the DropdownBase to be opened)*/ getMarkedOption: () => Promise<string | null>; mouseEnter: () => Promise<void>; mouseLeave: () => Promise<void>; exists: () => Promise<boolean>; element: () => Promise<any>; click: () => Promise<void>; base: UniDriver; }; //# sourceMappingURL=DropdownBase.uni.driver.d.ts.map