@wix/design-system
Version:
@wix/design-system
67 lines (48 loc) • 1.57 kB
Markdown
## InputWithLabel Testkit
### Import
- unidriver: `import { InputWithLabelUniDriver } from '@wix/design-system/dist/testkit/unidriver';`
- vanilla: `import { InputWithLabelTestkit } from '@wix/design-system/dist/testkit';`
- puppeteer: `import { InputWithLabelTestkit } from '@wix/design-system/dist/testkit/puppeteer';`
- playwright: `import { InputWithLabelTestkit } 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
### getSuffixesCount
- signature: getSuffixesCount()
- description: Gets the amount of rendered suffixes
### hasErrorMessage
- signature: hasErrorMessage()
- description: Returns true if an error status message exists
### getErrorMessage
- signature: getErrorMessage()
- description: Gets the error status message
### getValue
- signature: getValue()
### clickInput
- signature: clickInput()
### enterText
- signature: enterText(value)
### getLabelText
- signature: getLabelText()
### isCustomInput
- signature: isCustomInput()
### isFocusedStyle
- signature: isFocusedStyle()
### getMaxLength
- signature: getMaxLength()
### getPlaceholder
- signature: getPlaceholder()