UNPKG

@wix/design-system

Version:

@wix/design-system

41 lines (31 loc) 1.17 kB
## SortableListBase Testkit ### Import - unidriver: `import { SortableListBaseUniDriver } from '@wix/design-system/dist/testkit/unidriver';` - vanilla: `import { SortableListBaseTestkit } from '@wix/design-system/dist/testkit';` - puppeteer: `import { SortableListBaseTestkit } from '@wix/design-system/dist/testkit/puppeteer';` - playwright: `import { SortableListBaseTestkit } 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 ### reorder - signature: reorder({dataHookFrom, dataHookTo}) - returns: Promise<void> - description: reorder sortable list items ### getItemPosition - signature: getItemPosition({dataHook}) - returns: Promise<void> - description: get draggable item current position