## IconButton Testkit

### Import

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

### isButtonDisabled
- signature: isButtonDisabled()
- returns: Promise<boolean>
- description: returns true if button disabled

### isFocused
- signature: isFocused()
- returns: Promise<boolean | undefined>
- description: Checks whether button is focused

### hasSize
- signature: hasSize(size)
- returns: Promise<boolean>
- description: Checks whether the resolved rendered size matches the given size, including provider defaults

### hasSkin
- signature: hasSkin(skin)
- returns: Promise<boolean>
- description: Checks whether the resolved rendered skin matches the given skin, including provider defaults

### hasPriority
- signature: hasPriority(priority)
- returns: Promise<boolean>
- description: Checks whether the resolved rendered priority matches the given priority, including provider defaults
