## CodeSnippet Testkit

### Import

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

### getCode
- signature: getCode()
- returns: Promise<string>

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

### copyContent
- signature: copyContent()
- returns: Promise<void>

### getCopyButtonAriaLabel
- signature: getCopyButtonAriaLabel()
- returns: Promise<string | null>

### getAriaLabel
- signature: getAriaLabel()
- returns: Promise<string | null>
