@wix/design-system
Version:
@wix/design-system
67 lines (47 loc) • 1.47 kB
Markdown
## ListItemAction Testkit
### Import
- unidriver: `import { ListItemActionUniDriver } from '@wix/design-system/dist/testkit/unidriver';`
- vanilla: `import { ListItemActionTestkit } from '@wix/design-system/dist/testkit';`
- puppeteer: `import { ListItemActionTestkit } from '@wix/design-system/dist/testkit/puppeteer';`
- playwright: `import { ListItemActionTestkit } 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
### isTitleExists
- signature: isTitleExists()
### getTitleText
- signature: getTitleText()
### isPrefixIconExists
- signature: isPrefixIconExists()
### isSuffixIconExists
- signature: isSuffixIconExists()
### isSubtitleExists
- signature: isSubtitleExists()
### getSubtitleText
- signature: getSubtitleText()
### isSuffixExists
- signature: isSuffixExists()
### getSuffixText
- signature: getSuffixText()
### getSkin
- signature: getSkin()
### isDisabled
- signature: isDisabled()
### mouseEnter
- signature: mouseEnter()
### mouseLeave
- signature: mouseLeave()