Bez popisu

svg.test.js 376B

12345678910111213141516
  1. /**
  2. * @jest-environment puppeteer
  3. * @flow
  4. */
  5. import { screenshot } from '../utils/puppeteer.js';
  6. it('should position the popper on the right', async () => {
  7. const page = await browser.newPage();
  8. await page.goto(`${TEST_URL}/svg.html`);
  9. expect(await screenshot(page)).toMatchImageSnapshot({
  10. failureThreshold: 0.01,
  11. failureThresholdType: 'percent',
  12. });
  13. });