@wix/design-system
Version:
@wix/design-system
47 lines (35 loc) • 1.23 kB
Markdown
## AddressInputItem Testkit
### Import
- unidriver: `import { AddressInputItemUniDriver } from '@wix/design-system/dist/testkit/unidriver';`
- vanilla: `import { AddressInputItemTestkit } from '@wix/design-system/dist/testkit';`
- puppeteer: `import { AddressInputItemTestkit } from '@wix/design-system/dist/testkit/puppeteer';`
- playwright: `import { AddressInputItemTestkit } 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
### getPrefix
- signature: getPrefix()
- description: Get prefix
### getMainLabelText
- signature: getMainLabelText()
- description: Get main label Text
### getSecondaryLabelText
- signature: getSecondaryLabelText()
- description: Get secondary label Text
### getSuffix
- signature: getSuffix()
- description: Get suffix