## ComposerSidebar Testkit

### Import

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

### getSelectedItemId
- signature: getSelectedItemId()
- description: returns selected item id

### isItemDisabled
- signature: isItemDisabled(itemId)
- description: returns true if item is disabled

### clickOnItem
- signature: clickOnItem(itemId)
- description: clicks on given item by id

### getItemLabel
- signature: getItemLabel(itemId)
- description: returns item label value by id

### getLabelPlacement
- signature: getLabelPlacement()
- description: returns label placement value

### getItemSectionTitle
- signature: getItemSectionTitle(itemId)
- description: returns item section title by id
