UNPKG

@wix/design-system

Version:

@wix/design-system

61 lines (44 loc) 1.38 kB
## VariableInput Testkit ### Import - unidriver: `import { VariableInputUniDriver } from '@wix/design-system/dist/testkit/unidriver';` - vanilla: `import { VariableInputTestkit } from '@wix/design-system/dist/testkit';` - puppeteer: `import { VariableInputTestkit } from '@wix/design-system/dist/testkit/puppeteer';` - playwright: `import { VariableInputTestkit } 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() ### isDisabled - signature: isDisabled() ### getContent - signature: getContent() ### getPlaceholder - signature: getPlaceholder() ### enterText - signature: enterText(text) ### blur - signature: blur() ### focus - signature: focus() ### hasStatus - signature: hasStatus(status) - description: Status Return true if there's a status ### getStatusMessage - signature: getStatusMessage() - description: If there's a status message, returns its text value