import { Simulate } from 'react-dom/test-utils'; import { BaseDriver } from '@wix/wix-ui-test-utils/driver-factory'; import { PopoverMenuUniDriver } from '../PopoverMenu/PopoverMenu.uni.driver'; import { tooltipLegacyDriverFactory } from '../Tooltip/Tooltip.driver'; export interface TableActionCellDriver extends BaseDriver { element: () => T; exists: () => boolean; clickPrimaryActionButton: () => void; getIsPrimaryActionButtonDisabled: () => boolean; getPrimaryActionButtonVisibility: () => 'onHover' | 'always'; primaryActionButtonPrefixIconExists: () => boolean; primaryActionButtonSuffixIconExists: () => boolean; getVisibleActionsCount: () => number; getHiddenActionsCount: () => number; getVisibleActionTooltipDriver: (action: number) => ReturnType; getVisibleActionByDataHookTooltipDriver: (dataHook: string) => ReturnType; getHiddenActionsPopoverMenuDriver: () => PopoverMenuUniDriver; clickVisibleAction: (actionIndex: number) => void; clickVisibleActionByDataHook: (actionDataHook: string) => void; clickPopoverMenu: () => void; clickHiddenAction: (actionIndex: number) => void; clickHiddenActionByDataHook: (actionDataHook: string) => void; getMoreActionsTooltipText: () => string; } declare const tableActionCellDriverFactory: ({ element, wrapper, eventTrigger, }: { element: HTMLElement; wrapper: HTMLElement; eventTrigger: typeof Simulate; }) => { /** Get the element */ element: () => HTMLElement; /** Whether the element exists */ exists: () => boolean; /** Get the driver of the primary action