UNPKG

@wix/design-system

Version:

@wix/design-system

55 lines (39 loc) 1.28 kB
## SidebarItemNext Testkit ### Import - unidriver: `import { SidebarItemNextUniDriver } from '@wix/design-system/dist/testkit/unidriver';` - vanilla: `import { SidebarItemNextTestkit } from '@wix/design-system/dist/testkit';` - puppeteer: `import { SidebarItemNextTestkit } from '@wix/design-system/dist/testkit/puppeteer';` - playwright: `import { SidebarItemNextTestkit } 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 ### click - signature: click(...args) ### isSelected - signature: isSelected(...args) ### isDisabled - signature: isDisabled(...args) ### suffixExists - signature: suffixExists(...args) ### getSuffixCount - signature: getSuffixCount(...args) ### prefixExists - signature: prefixExists(...args) ### getSkin - signature: getSkin(...args) ### getText - signature: getText(...args)