UNPKG

@wix/design-system

Version:

@wix/design-system

63 lines (47 loc) 1.72 kB
## AngleInput Testkit ### Import - unidriver: `import { AngleInputUniDriver } from '@wix/design-system/dist/testkit/unidriver';` - vanilla: `import { AngleInputTestkit } from '@wix/design-system/dist/testkit';` - puppeteer: `import { AngleInputTestkit } from '@wix/design-system/dist/testkit/puppeteer';` - playwright: `import { AngleInputTestkit } 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 ### isFocused - signature: isFocused() - description: Checks if the input element is focused. ### isDisabled - signature: isDisabled() - description: Checks if the input element is disabled. ### focus - signature: focus() - description: Focuses the input element. ### blur - signature: blur() - description: Blurs the input element. ### getValue - signature: getValue() - description: Retrieves the value of the input element. ### setValue - signature: setValue(value) - description: Sets the value of the input element. ### incrementByStepCount - signature: incrementByStepCount(times) - description: Increases the angle by pressing the 'ArrowUp' key a specified number of times. ### decrementByStepCount - signature: decrementByStepCount(times) - description: Decreases the angle by pressing the 'ArrowDown' key a specified number of times.