import * as React from 'react'; import Thumbnail from '..'; import { thumbnailTestkitFactory } from '../../../testkit'; import { thumbnailTestkitFactory as thumbnailEnzymeTestkitFactory } from '../../../testkit/enzyme'; import { thumbnailTestkitFactory as thumbnailPuppeteerTestkitFactory } from '../../../testkit/puppeteer'; import * as enzyme from 'enzyme'; import * as puppeteer from 'puppeteer'; function ThumbnailWithMandatoryProps() { return ; } function ThumbnailWithAllProps() { return ( desc} image={
image
} selected disabled hideSelectedIcon backgroundImage={
} onClick={_ev => {}} width="10px" height="10px" contentAlignment="center" /> ); } async function testkits() { const testkit = thumbnailTestkitFactory({ dataHook: 'hook', wrapper: document.createElement('div'), }); const enzymeTestkit = thumbnailEnzymeTestkitFactory({ dataHook: 'hook', wrapper: enzyme.mount(
), }); const browser = await puppeteer.launch(); const page = await browser.newPage(); const puppeteerTestkit = await thumbnailPuppeteerTestkitFactory({ dataHook: 'hook', page, }); }