UNPKG

@wix/design-system

Version:

@wix/design-system

88 lines (66 loc) 2.35 kB
## ListItemEditable Testkit ### Import - unidriver: `import { ListItemEditableUniDriver } from '@wix/design-system/dist/testkit/unidriver';` - vanilla: `import { ListItemEditableTestkit } from '@wix/design-system/dist/testkit';` - puppeteer: `import { ListItemEditableTestkit } from '@wix/design-system/dist/testkit/puppeteer';` - playwright: `import { ListItemEditableTestkit } 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 ### getValue - signature: getValue() - description: A getter for the value ### getPlaceholder - signature: getPlaceholder() - description: A getter for the placeholder ### isApproveButtonDisabled - signature: isApproveButtonDisabled() - description: Returns true it the approve button is disabled ### enterText - signature: enterText(text) - description: Simulated writing text in the input ### clickApprove - signature: clickApprove() - description: Simulates clicking the approve button ### clickCancel - signature: clickCancel() - description: Simulates clicking the cancel button ### pressEnter - signature: pressEnter() - description: Simulates clicking the enter key ### isFocus - signature: isFocus() - description: Returns true if input element is focused ### hasSuffix - signature: hasSuffix() - description: Returns true if input element has suffix ### getCancelButtonTooltipText - signature: getCancelButtonTooltipText() - description: Returns cancel button tooltip text ### getApproveButtonTooltipText - signature: getApproveButtonTooltipText() - description: Returns approve button tooltip text ### hasStatus - signature: hasStatus(status) - description: Status Return true if the given status is displayed ### getStatusMessage - signature: getStatusMessage() - description: If there's a status message, returns its text value ### getMaxLength - signature: getMaxLength() - description: Returns the maxLength attribute value