UNPKG

@wix/design-system

Version:

@wix/design-system

71 lines (55 loc) 1.77 kB
## TimeInput Testkit ### Import - unidriver: `import { TimeInputUniDriver } from '@wix/design-system/dist/testkit/unidriver';` - vanilla: `import { TimeInputTestkit } from '@wix/design-system/dist/testkit';` - puppeteer: `import { TimeInputTestkit } from '@wix/design-system/dist/testkit/puppeteer';` - playwright: `import { TimeInputTestkit } 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() - returns: Promise<Date> - description: Gets passed date value ### setValue - signature: setValue(value) - returns: Promise<void> - description: Sets given value as an input value ### confirmValue - signature: confirmValue() - returns: Promise<void> - description: Confirms typed in value ### getLocale - signature: getLocale() - returns: Promise<string> - description: Gets passed locale ### getTimeStyle - signature: getTimeStyle() - returns: Promise<string> - description: Gets passed timeStyle ### isDisabled - signature: isDisabled() - returns: Promise<boolean> - description: Checks if TimeInput is disabled ### hasStatus - signature: hasStatus(status) - returns: Promise<boolean> - description: Checks if TimeInput has status ### getStatusMessage - signature: getStatusMessage() - returns: Promise<string | > - description: Gets TimeInput status message