UNPKG

@wix/design-system

Version:

@wix/design-system

51 lines (38 loc) 1.43 kB
## TrendIndicator Testkit ### Import - unidriver: `import { TrendIndicatorUniDriver } from '@wix/design-system/dist/testkit/unidriver';` - vanilla: `import { TrendIndicatorTestkit } from '@wix/design-system/dist/testkit';` - puppeteer: `import { TrendIndicatorTestkit } from '@wix/design-system/dist/testkit/puppeteer';` - playwright: `import { TrendIndicatorTestkit } 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 ### hasTrendIndicatorIcon - signature: hasTrendIndicatorIcon() - description: Returns true if trend icon exist ### isTrendIndicatorIconUp - signature: isTrendIndicatorIconUp() - description: Returns true if trend icon is sort up ### isTrendIndicatorIconDown - signature: isTrendIndicatorIconDown() - description: Returns true if trend icon is sort down ### getTrendValue - signature: getTrendValue() - description: Gets trend value ### getFormattedTrendValue - signature: getFormattedTrendValue() - description: Gets formatted trend value