@wix/design-system
Version:
@wix/design-system
130 lines (90 loc) • 2.48 kB
Markdown
## InputArea Testkit
### Import
- unidriver: `import { InputAreaUniDriver } from '@wix/design-system/dist/testkit/unidriver';`
- vanilla: `import { InputAreaTestkit } from '@wix/design-system/dist/testkit';`
- puppeteer: `import { InputAreaTestkit } from '@wix/design-system/dist/testkit/puppeteer';`
- playwright: `import { InputAreaTestkit } 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
### trigger
- signature: trigger(trigger, event)
### focus
- signature: focus()
### enterText
- signature: enterText(text)
### getValue
- signature: getValue()
### getName
- signature: getName()
### getPlaceholder
- signature: getPlaceholder()
### getDefaultValue
- signature: getDefaultValue()
### getRowsCount
- signature: getRowsCount()
### getMaxLength
- signature: getMaxLength()
### getMinLength
- signature: getMinLength()
### getTabIndex
- signature: getTabIndex()
### getReadOnly
- signature: getReadOnly()
### getCursorLocation
- signature: getCursorLocation()
### getResizable
- signature: getResizable()
### getDisabled
- signature: getDisabled()
### getRequired
- signature: getRequired()
### getHasCounter
- signature: getHasCounter()
### getCounterValue
- signature: getCounterValue()
### hasExclamation
- signature: hasExclamation()
### isFocusedStyle
- signature: isFocusedStyle()
### isSizeSmall
- signature: isSizeSmall()
### isHoveredStyle
- signature: isHoveredStyle()
### isFocus
- signature: isFocus()
### exists
- signature: exists()
### getStyle
- signature: getStyle()
### getAriaLabel
- signature: getAriaLabel()
### getAriaControls
- signature: getAriaControls()
### getAriaDescribedby
- signature: getAriaDescribedby()
### getTooltipDataHook
- signature: getTooltipDataHook()
### getTooltipElement
- signature: getTooltipElement()
### hasStatus
- signature: hasStatus(status)
- description: Status
Return true if there's a status
### getStatusMessage
- signature: getStatusMessage()
- description: If there's a status message, returns its text value