## FunnelChart Testkit

### Import

- unidriver: `import { FunnelChartUniDriver } from '@wix/design-system/dist/testkit/unidriver';`
- vanilla: `import { FunnelChartTestkit } from '@wix/design-system/dist/testkit';`
- puppeteer: `import { FunnelChartTestkit } from '@wix/design-system/dist/testkit/puppeteer';`
- playwright: `import { FunnelChartTestkit } 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

### getItemsCount
- signature: getItemsCount()
- returns: Promise<number>
- description: Gets number of items

### getValueAt
- signature: getValueAt(index)
- returns: Promise<string>
- description: Gets item displayed value (after compaction) at index

### getLabelAt
- signature: getLabelAt(index)
- returns: Promise<string>
- description: Gets item label at index

### getDifferenceFromDataAt
- signature: getDifferenceFromDataAt(index)
- returns: Promise<string>
- description: Gets badge value from index

### getDifferenceTooltipFromDataAt
- signature: getDifferenceTooltipFromDataAt(index)
- returns: Promise<string>
- description: Gets badge tooltip from index

### isDisplayingBadges
- signature: isDisplayingBadges()
- returns: Promise<boolean>
- description: Returns true if badges are displayed

### getDifferenceTooltipSizeAt
- signature: getDifferenceTooltipSizeAt(index)
- returns: Promise<string>
- description: Get tooltip size from index

### getDifferenceStepSkinAt
- signature: getDifferenceStepSkinAt(index)
- returns: Promise<string>
- description: Get step skin from index

### getDifferenceBadgeSkinAt
- signature: getDifferenceBadgeSkinAt(index)
- returns: Promise<string>
- description: Get badge skin from index

### differenceBadgeHasIconAt
- signature: differenceBadgeHasIconAt(index)
- returns: Promise<boolean>
- description: Checks whether badge from index has an icon
