## ModalPreviewLayout Testkit

### Import

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

### clickOverlay
- signature: clickOverlay()
- description: Click the overlay

### getPreviewTitle
- signature: getPreviewTitle()
- description: Get the title node

### getPreviewActions
- signature: getPreviewActions()
- description: Get the actions node

### getPreviewContent
- signature: getPreviewContent()
- description: Get the content node

### clickClose
- signature: clickClose()
- description: Click the close button

### getCurrentChildIndex
- signature: getCurrentChildIndex()
- description: Get the index of the rendered child

### getSkin
- signature: getSkin()
- returns: Promise< | >
- description: Get skin
