@wix/design-system
Version:
@wix/design-system
69 lines (53 loc) • 1.68 kB
Markdown
## BadgeSelect Testkit
### Import
- unidriver: `import { BadgeSelectUniDriver } from '@wix/design-system/dist/testkit/unidriver';`
- vanilla: `import { BadgeSelectTestkit } from '@wix/design-system/dist/testkit';`
- puppeteer: `import { BadgeSelectTestkit } from '@wix/design-system/dist/testkit/puppeteer';`
- playwright: `import { BadgeSelectTestkit } 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
### exists
- signature: exists()
### clickAtOption
- signature: clickAtOption(index)
- returns: Promise<void>
- description: Clicks an option at given index
### text
- signature: text()
- returns: Promise<string>
- description: Gets badge text
### getType
- signature: getType()
- returns: Promise< | | >
- description: Gets badge type
### getSkin
- signature: getSkin()
- returns: Promise< | | | | | | | | | | | | >
- description: Gets badge type
### getSize
- signature: getSize()
- returns: Promise< | >
- description: Gets badge size
### isUppercase
- signature: isUppercase()
- returns: Promise<boolean>
- description: Checks whether the text is uppercase
### hasClickCursor
- signature: hasClickCursor()
- returns: Promise<boolean>
- description: Checks whether badge is clickable