/**
 * @jest-environment puppeteer
 * @flow
 */
import { scroll, screenshot } from '../utils/puppeteer.js';
import devices from 'puppeteer/DeviceDescriptors';

const iPhonex = devices['iPhone X'];

it('preventOverflow works on mobile devices with horizontal scrollbars', async () => {
  const page = await browser.newPage();
  await page.emulate(iPhonex);
  await page.goto(`${TEST_URL}/mobile/viewport.html`);

  await page.evaluate(() => {
    window.scrollBy(400, 0);
  });

  expect(await screenshot(page)).toMatchImageSnapshot();
});

@@ -193,16 +193,21 @@
 X'%5D;%0A%0Ait
+.skip
 ('preven

disable mobile test