## Swatches Testkit

### Import

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

### getSwatchCount
- signature: getSwatchCount()
- returns: Promise<number>
- description: Get swatch count

### getSwatch
- signature: getSwatch(index)
- returns: Promise<FillPreviewUniDriver>
- description: Get swatch at given index

### clickEmptySwatch
- signature: clickEmptySwatch()
- returns: Promise<void>
- description: Click empty swatch

### isSwatchSelectedAt
- signature: isSwatchSelectedAt(index)
- returns: Promise<boolean>
- description: Test if swatch is selected at given index

### isEmptySwatchSelected
- signature: isEmptySwatchSelected()
- returns: Promise<boolean>
- description: Test if empty swatch is selected

### addButtonExists
- signature: addButtonExists()
- returns: Promise<boolean>
