import * as React from 'react';
import AddItem from '..';
import { addItemTestkitFactory } from '../../../testkit';
import { addItemTestkitFactory as addItemEnzymeTestkitFactory } from '../../../testkit/enzyme';
import { addItemTestkitFactory as addItemPuppeteerTestkitFactory } from '../../../testkit/puppeteer';
import * as enzyme from 'enzyme';
import * as puppeteer from 'puppeteer';

function AddItemWithMandatoryProps() {
  return <AddItem />;
}

function AddItemWithAllProps() {
  return (
    <AddItem
      alignItems="center"
      dataHook="hook"
      disabled
      onClick={_ev => {}}
      removePadding
      showIcon
      size="large"
      theme="dashes"
      tooltipContent="content"
      tooltipProps={{}}
      borderRadius="100%"
      className="test"
      children={<div id="add_item_label">Add Item</div>}
      ariaLabel="Add Button"
      ariaLabelledBy="add_item_label"
    />
  );
}

async function testkits() {
  const testkit = addItemTestkitFactory({
    dataHook: 'hook',
    wrapper: document.createElement('div'),
  });

  const enzymeTestkit = addItemEnzymeTestkitFactory({
    dataHook: 'hook',
    wrapper: enzyme.mount(<div />),
  });

  const browser = await puppeteer.launch();
  const page = await browser.newPage();
  const puppeteerTestkit = await addItemPuppeteerTestkitFactory({
    dataHook: 'hook',
    page,
  });
}
