UNPKG

@wix/design-system

Version:

@wix/design-system

51 lines (39 loc) 1.31 kB
## LiveRegion Testkit ### Import - unidriver: `import { LiveRegionUniDriver } from '@wix/design-system/dist/testkit/unidriver';` - vanilla: `import { LiveRegionTestkit } from '@wix/design-system/dist/testkit';` - puppeteer: `import { LiveRegionTestkit } from '@wix/design-system/dist/testkit/puppeteer';` - playwright: `import { LiveRegionTestkit } 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 ### 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 ### getMessage - signature: getMessage() - returns: Promise<string> - description: Returns the message ### getRole - signature: getRole() - returns: Promise<string> - description: Returns the role