## FieldSet Testkit

### Import

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

### getLegendText
- signature: getLegendText()
- description: get legend text

### getLegendSize
- signature: getLegendSize()
- description: returns legend size

### getLegendPlacement
- signature: getLegendPlacement()
- description: returns legend placement

### getLegendAlignment
- signature: getLegendAlignment()
- description: returns legend alignment

### isRequired
- signature: isRequired()
- description: returns true whether field set is required

### getCharCount
- signature: getCharCount()
- description: returns the length left

### isLengthExceeded
- signature: isLengthExceeded()
- description: returns whether the field set length is exceeded

### getInfoContent
- signature: getInfoContent()
- description: returns tooltip text of the info content

### getAlignment
- signature: getAlignment()

### getDirection
- signature: getDirection()

### getGap
- signature: getGap()

### getStatusMessage
- signature: getStatusMessage()
- description: returns status message text

### hasStatus
- signature: hasStatus(status)
- description: return true if it has a given status
