import { gotoPageWithBPMNContainer, getConfig } from './helpers/visu-utils';

it(`no BPMN Gateway visual regression`, async () => {
  await gotoPageWithBPMNContainer();

  // Take the screenshot of the page with puppeteer
  const image = await page.screenshot({ fullPage: true });

  // Compare the taken screenshot with the baseline screenshot (if exists), or create it (else)
  const config = getConfig('__image_snapshots__/bpmn');
  expect(image).toMatchImageSnapshot(config);
});