import * as React from 'react'; import Swatches from '..'; import { swatchesTestkitFactory } from '../../../testkit'; import { swatchesTestkitFactory as swatchesEnzymeTestkitFactory } from '../../../testkit/enzyme'; import { swatchesTestkitFactory as swatchesPuppeteerTestkitFactory } from '../../../testkit/puppeteer'; import * as enzyme from 'enzyme'; import * as puppeteer from 'puppeteer'; function SwatchesWithMandatoryProps() { return ; } function SwatchesWithAllProps() { return ( {}} size="small" showClear={false} showClearMessage={
} onAdd={() => {}} onChange={() => {}} onCancel={() => {}} showAddButton addButtonMessage="msg" addButtonIconSize="small" columns={10} gap={30} /> ); } async function testkits() { const testkit = swatchesTestkitFactory({ dataHook: 'hook', wrapper: document.createElement('div'), }); const enzymeTestkit = swatchesEnzymeTestkitFactory({ dataHook: 'hook', wrapper: enzyme.mount(
), }); const browser = await puppeteer.launch(); const page = await browser.newPage(); const puppeteerTestkit = await swatchesPuppeteerTestkitFactory({ dataHook: 'hook', page, }); }