@wix/design-system
Version:
@wix/design-system
83 lines (62 loc) • 2.31 kB
Markdown
## TableListItem Testkit
### Import
- unidriver: `import { TableListItemUniDriver } from '@wix/design-system/dist/testkit/unidriver';`
- vanilla: `import { TableListItemTestkit } from '@wix/design-system/dist/testkit';`
- puppeteer: `import { TableListItemTestkit } from '@wix/design-system/dist/testkit/puppeteer';`
- playwright: `import { TableListItemTestkit } 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
### getColumnTextAt
- signature: getColumnTextAt(index)
- description: Get column alternative text.
### isCheckboxExists
- signature: isCheckboxExists()
- description: Defines if checkbox exists.
### isCheckboxChecked
- signature: isCheckboxChecked()
- description: Defines if checkbox is checked.
### isCheckboxDisabled
- signature: isCheckboxDisabled()
- description: Defines if checkbox is disabled.
### isCheckboxTooltipEnabled
- signature: isCheckboxTooltipEnabled()
- description: Defines if checkbox tooltip is enabled.
### isDragHandleTooltipEnabled
- signature: isDragHandleTooltipEnabled()
- description: Defines if drag handle tooltip is enabled.
### expandHandleExists
- signature: expandHandleExists()
- description: Defines if expand handle exists.
### toggleCheckbox
- signature: toggleCheckbox()
- description: Trigger checkbox toggle.
### toggleExpandHandle
- signature: toggleExpandHandle()
- description: Trigger expand toggle.
### hoverDragHandle
- signature: hoverDragHandle()
- description: Trigger hover on a drag handle.
### getDragHandleDisabled
- signature: getDragHandleDisabled()
- description: Defines if drag handle is disabled.
### getCheckboxTooltipContent
- signature: getCheckboxTooltipContent()
- description: Get the content of checkbox tooltip.
### getDragHandleTooltipContent
- signature: getDragHandleTooltipContent()
- description: Get the content of drag handle tooltip.