UNPKG

@wix/design-system

Version:

@wix/design-system

115 lines (79 loc) 2.09 kB
## Tag Testkit ### Import - unidriver: `import { TagUniDriver } from '@wix/design-system/dist/testkit/unidriver';` - vanilla: `import { TagTestkit } from '@wix/design-system/dist/testkit';` - puppeteer: `import { TagTestkit } from '@wix/design-system/dist/testkit/puppeteer';` - playwright: `import { TagTestkit } 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 ### isTiny - signature: isTiny() ### isSmall - signature: isSmall() ### isMedium - signature: isMedium() ### isLarge - signature: isLarge() ### isStandardTheme - signature: isStandardTheme() ### isWarningTheme - signature: isWarningTheme() ### isErrorTheme - signature: isErrorTheme() ### isDarkTheme - signature: isDarkTheme() ### isSuccessTheme - signature: isSuccessTheme() ### isStandardSkin - signature: isStandardSkin() ### isWarningSkin - signature: isWarningSkin() ### isErrorSkin - signature: isErrorSkin() ### isDarkSkin - signature: isDarkSkin() ### isSuccessSkin - signature: isSuccessSkin() ### isRemovable - signature: isRemovable() ### removeTag - signature: removeTag() ### click - signature: click() ### isThumbExists - signature: isThumbExists() ### isDisabled - signature: isDisabled() ### getLabel - signature: getLabel() ### getCloseButtonSkin - signature: getCloseButtonSkin() ### getCloseButtonTheme - signature: getCloseButtonTheme() ### getCloseButtonSize - signature: getCloseButtonSize() ### getTextSize - signature: getTextSize() ### getTextWeight - signature: getTextWeight() ### isClickable - signature: isClickable() ### isHoverable - signature: isHoverable() ### pressKey - signature: pressKey(key)