@wix/design-system
Version:
@wix/design-system
61 lines (44 loc) • 1.4 kB
Markdown
## RichTextInputArea Testkit
### Import
- unidriver: `import { RichTextInputAreaUniDriver } from '@wix/design-system/dist/testkit/unidriver';`
- vanilla: `import { RichTextInputAreaTestkit } from '@wix/design-system/dist/testkit';`
- puppeteer: `import { RichTextInputAreaTestkit } from '@wix/design-system/dist/testkit/puppeteer';`
- playwright: `import { RichTextInputAreaTestkit } 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
### isDisabled
- signature: isDisabled()
### getContent
- signature: getContent()
### getPlaceholder
- signature: getPlaceholder()
### enterText
- signature: enterText(text)
### hasFocus
- signature: hasFocus()
### focus
- signature: focus()
### blur
- signature: blur()
### 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