import * as React from 'react';
import InputWithOptions from '..';
import { inputWithOptionsTestkitFactory } from '../../../testkit';
import { inputWithOptionsTestkitFactory as inputWithOptionsEnzymeTestkitFactory } from '../../../testkit/enzyme';
import { inputWithOptionsTestkitFactory as inputWithOptionsPuppeteerTestkitFactory } from '../../../testkit/puppeteer';
import * as enzyme from 'enzyme';
import * as puppeteer from 'puppeteer';
function InputWithOptionsWithMandatoryProps() {
return ;
}
function InputWithOptionsWithAllProps() {
return (
({}),
onMouseLeave: () => ({}),
hideDelay: 10,
showDelay: 1,
moveArrowTo: 1,
timeout: 1,
zIndex: 1,
dynamicWidth: true,
minWidth: '10px',
maxWidth: '11px',
}}
autocomplete="off"
className="cls"
clearButton
customInput={}
dataHook="hook"
defaultValue="value"
disableEditing
disabled
forceFocus
forceHover
hideStatusSuffix
id="1"
max={10}
maxLength={100}
menuArrow
min={5}
name="name"
noLeftBorderRadius
noRightBorderRadius
onBlur={_ev => {}}
onChange={_ev => {}}
onClear={_ev => {}}
onCompositionChange={_isComposing => {}}
onEnterPressed={_ev => {}}
onEscapePressed={_ev => {}}
onFocus={_ev => {}}
onInputClicked={_ev => {}}
onKeyDown={_ev => {}}
onKeyUp={_ev => {}}
onPaste={_ev => {}}
placeholder="placeholder"
prefix={}
readOnly
ref={React.createRef()}
required
roundInput
rtl
size="large"
status="error"
statusMessage="msg"
step={1}
suffix={}
tabIndex={0}
textOverflow="clip"
tooltipPlacement="bottom"
type="text"
value="value"
withSelection
closeOnSelect
dropDirectionUp
fixedFooter={}
fixedHeader={}
focusOnSelectedOption
hasMore
inContainer
infiniteScroll
itemHeight="big"
loadMore={_page => {}}
markedOption="1"
maxHeightPixels={200}
minWidthPixels={100}
onClickOutside={_ev => {}}
onClose={() => {}}
onMouseEnter={_ev => {}}
onMouseLeave={_ev => {}}
onOptionMarked={_opt => {}}
onSelect={(_opt, _samePicked) => {}}
selectedHighlight
selectedId="1"
visible
withArrow
overflow="scroll"
onOptionsShow={() => {}}
onOptionsHide={() => {}}
options={[
{
value: 'a',
id: 0,
disabled: true,
linkTo: 'google.com',
title: true,
overrideStyle: true,
},
{
value: ,
id: 1,
disabled: true,
linkTo: 'google.com',
title: true,
overrideStyle: true,
},
{ value: '-', id: '2' },
{
value: ({ selected, disabled, hovered }) => ,
id: 3,
disabled: true,
linkTo: 'google.com',
title: true,
overrideStyle: true,
},
]}
/>
);
}
function ShouldHaveRefMethods() {
const instace = new InputWithOptions({});
instace.focus({ preventScroll: true });
instace.blur();
instace.select();
}
async function testkits() {
const testkit = inputWithOptionsTestkitFactory({
dataHook: 'hook',
wrapper: document.createElement('div'),
});
const enzymeTestkit = inputWithOptionsEnzymeTestkitFactory({
dataHook: 'hook',
wrapper: enzyme.mount(),
});
const browser = await puppeteer.launch();
const page = await browser.newPage();
const puppeteerTestkit = await inputWithOptionsPuppeteerTestkitFactory({
dataHook: 'hook',
page,
});
}