## NestableList Testkit

### Import

- unidriver: `import { NestableListUniDriver } from '@wix/design-system/dist/testkit/unidriver';`
- vanilla: `import { NestableListTestkit } from '@wix/design-system/dist/testkit';`
- puppeteer: `import { NestableListTestkit } from '@wix/design-system/dist/testkit/puppeteer';`
- playwright: `import { NestableListTestkit } from '@wix/design-system/dist/testkit/playwright';`

### API

### exists
- signature: exists()
- returns: Promise<boolean>
- description: Checks whether the component found with the given data hook

### element
- signature: element()
- returns: Promise<any>
- description: Gets the component root element

### click
- signature: click()
- returns: Promise<void>
- description: Clicks on the component root element

### base
- signature: base()
- returns: UniDriver
- description: Returns UniDriver for the base element

### reorder
- signature: reorder({dataHookFrom, dataHookTo})
- returns: Promise<void>
- description: reorder nestable list items by data-hook

### getItemPosition
- signature: getItemPosition({dataHook})
- returns: Promise<void>
- description: get nestable list item position

### getItemDepth
- signature: getItemDepth({dataHook})
- returns: Promise<void>
- description: get nestable list item depth

### getActionsCount
- signature: getActionsCount(dataHook)
- returns: Promise<number>

### hoverActionsContainer
- signature: hoverActionsContainer(dataHook)
- returns: Promise<void>

### getActionLabelAt
- signature: getActionLabelAt({actionIndex, parentDataHook})

### clickActionAt
- signature: clickActionAt({actionIndex, parentDataHook})

### changeItemDepth
- signature: changeItemDepth({dataHook, depthLevel})
- returns: Promise<void>
- description: change nestable list item depth
