UNPKG

@wix/design-system

Version:

@wix/design-system

44 lines (33 loc) 1.18 kB
## Timeline Testkit ### Import - unidriver: `import { TimelineUniDriver } from '@wix/design-system/dist/testkit/unidriver';` - vanilla: `import { TimelineTestkit } from '@wix/design-system/dist/testkit';` - puppeteer: `import { TimelineTestkit } from '@wix/design-system/dist/testkit/puppeteer';` - playwright: `import { TimelineTestkit } 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 ### getLabelText - signature: getLabelText(idx) - description: Gets the label text of timeline item by index ### getSuffixText - signature: getSuffixText(idx) - description: Get the suffix text of timeline item by index ### getSkin - signature: getSkin() - returns: Promise< | | > - description: Gets skin type