@wix/design-system
Version:
@wix/design-system
55 lines (41 loc) • 1.38 kB
Markdown
## ClickableCard Testkit
### Import
- unidriver: `import { ClickableCardUniDriver } from '@wix/design-system/dist/testkit/unidriver';`
- vanilla: `import { ClickableCardTestkit } from '@wix/design-system/dist/testkit';`
- puppeteer: `import { ClickableCardTestkit } from '@wix/design-system/dist/testkit/puppeteer';`
- playwright: `import { ClickableCardTestkit } 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
### isFocused
- signature: isFocused()
- description: Checks if the card is focused.
### isDisabled
- signature: isDisabled()
- description: Checks if the card is disabled.
### isAriaDisabled
- signature: isAriaDisabled()
- description: Checks if the card's 'aria-disabled' attribute is set to true.
### focus
- signature: focus()
- description: Focuses the card.
### blur
- signature: blur()
- description: Blurs the card.
### click
- signature: click()
- description: Clicks on the card.