import * as React from 'react'; import InputWithLabel from '..'; import { inputWithLabelTestkitFactory } from '../../../testkit'; import { inputWithLabelTestkitFactory as inputWithLabelEnzymeTestkitFactory } from '../../../testkit/enzyme'; import { inputWithLabelTestkitFactory as inputWithLabelPuppeteerTestkitFactory } from '../../../testkit/puppeteer'; import * as enzyme from 'enzyme'; import * as puppeteer from 'puppeteer'; function InputWithLabelWithMandatoryProps() { return ; } function InputWithLabelWithAllProps() { return ( ]} value={6} dataHook="hook" status="error" statusMessage={
} onChange={_ev => {}} onFocus={_ev => {}} onBlur={_ev => {}} name="name" type="type" ariaLabel="aria" autoFocus autocomplete="autocomplete" disabled className="class" maxLength={100} placeholder="placeholder" customInput={} /> ); } async function testkits() { const testkit = inputWithLabelTestkitFactory({ dataHook: 'hook', wrapper: document.createElement('div'), }); const enzymeTestkit = inputWithLabelEnzymeTestkitFactory({ dataHook: 'hook', wrapper: enzyme.mount(
), }); const browser = await puppeteer.launch(); const page = await browser.newPage(); const puppeteerTestkit = await inputWithLabelPuppeteerTestkitFactory({ dataHook: 'hook', page, }); }