## CardGalleryItem Testkit

### Import

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

### getTitle
- signature: getTitle()
- returns: Promise<string | null>
- description: Gets the cards title.

### getBadge
- signature: getBadge()
- returns: Promise<Node | null>
- description: Gets the badge node element.

### getSubtitle
- signature: getSubtitle()
- returns: Promise<string | null>
- description: Gets the cards subtitle.

### getBackgroundImageUrl
- signature: getBackgroundImageUrl()
- returns: Promise<string | null>
- description: Gets the background image URL.

### click
- signature: click()
- returns: Promise<void>
- description: Clicks on the primary action.

### clickOnContainer
- signature: clickOnContainer()
- returns: Promise<void>
- description: Clicks on the container.

### clickFooter
- signature: clickFooter()
- returns: Promise<void>
- description: Clicks on the footer.

### getPrimaryActionLabel
- signature: getPrimaryActionLabel()
- returns: Promise<string>
- description: Gets the primary action label.

### isPrimaryActionDisabled
- signature: isPrimaryActionDisabled()
- returns: Promise<boolean>
- description: Checks whether the primary action is clickable.

### clickOnPrimaryAction
- signature: clickOnPrimaryAction()
- returns: Promise<void>
- description: Clicks on the primary action button.

### getSecondaryActionLabel
- signature: getSecondaryActionLabel()
- returns: Promise<string>
- description: Gets the secondary action label. l

### clickOnSecondaryAction
- signature: clickOnSecondaryAction()
- returns: Promise<void>
- description: Clicks on the secondary action.

### getSettingsMenu
- signature: getSettingsMenu()
- returns: Promise<Node | null>
- description: Gets the the settingsMenu node.

### getBackgroundImageNode
- signature: getBackgroundImageNode()
- returns: Promise<Element | null>
- description: Gets the background image element.

### hover
- signature: hover()
- returns: Promise<void>
- description: Hovers the component.

### dragHandleExists
- signature: dragHandleExists()
- returns: Promise<boolean>
- description: Indicates drag handle exists

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

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

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

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

### getCustomFooter
- signature: getCustomFooter()
- returns: Promise<Node>
