UNPKG

@wix/design-system

Version:

@wix/design-system

47 lines (35 loc) 1.33 kB
## Dock Testkit ### Import - unidriver: `import { DockUniDriver } from '@wix/design-system/dist/testkit/unidriver';` - vanilla: `import { DockTestkit } from '@wix/design-system/dist/testkit';` - puppeteer: `import { DockTestkit } from '@wix/design-system/dist/testkit/puppeteer';` - playwright: `import { DockTestkit } 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 ### clickPoint - signature: clickPoint(position) - description: Clicks the point at the given position. ### pointExists - signature: pointExists(position) - description: Checks if the point at the given position is rendered. ### isPointSelected - signature: isPointSelected(position) - description: Checks if the point at the given position is selected. ### isPointDisabled - signature: isPointDisabled(position) - description: Checks if the point at the given position is disabled.