@wix/design-system
Version:
@wix/design-system
46 lines (35 loc) • 1.25 kB
Markdown
## CardFolderTabs Testkit
### Import
- unidriver: `import { CardFolderTabsUniDriver } from '@wix/design-system/dist/testkit/unidriver';`
- vanilla: `import { CardFolderTabsTestkit } from '@wix/design-system/dist/testkit';`
- puppeteer: `import { CardFolderTabsTestkit } from '@wix/design-system/dist/testkit/puppeteer';`
- playwright: `import { CardFolderTabsTestkit } 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
### isTabDisabledById
- signature: isTabDisabledById(tabId)
- returns: Promise<boolean>
- description: Checks whether tab is disabled by id
### selectTabById
- signature: selectTabById(tabId)
- returns: Promise<void>
- description: Selects tab by tab by id
### getSize
- signature: getSize(tabId)
- returns: Promise<string>
- description: Return tab text size