UNPKG

@wix/design-system

Version:

@wix/design-system

53 lines (38 loc) 1.23 kB
## SidebarSectionItem Testkit ### Import - unidriver: `import { SidebarSectionItemUniDriver } from '@wix/design-system/dist/testkit/unidriver';` - vanilla: `import { SidebarSectionItemTestkit } from '@wix/design-system/dist/testkit';` - puppeteer: `import { SidebarSectionItemTestkit } from '@wix/design-system/dist/testkit/puppeteer';` - playwright: `import { SidebarSectionItemTestkit } 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 ### getText - signature: getText() ### getTitleText - signature: getTitleText() - description: Returns the text of the title ### getPrefix - signature: getPrefix() ### getSuffix - signature: getSuffix() ### hover - signature: hover() ### isSelected - signature: isSelected() ### isDisabled - signature: isDisabled()