## ComposerHeader Testkit

### Import

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

### saveStatusExists
- signature: saveStatusExists(dataHook)
- description: returns true if save status has been passed. Custom dataHook can be used

### getSaveStatusValue
- signature: getSaveStatusValue(dataHook)

### actionsExists
- signature: actionsExists(dataHook)
- description: returns true if action exists. Requires dataHook.

### mainActionsExists
- signature: mainActionsExists(dataHook)
- description: return true if main action exists

### backButtonExists
- signature: backButtonExists()
- description: return true if backButton exists.

### getBackButtonText
- signature: getBackButtonText()
- description: returns back button value in string

### clickBack
- signature: clickBack()
- description: clicks on back button
