Нет описания

virtual-reference.test.js 352B

123456789101112131415
  1. /**
  2. * @jest-environment puppeteer
  3. * @flow
  4. */
  5. import { scroll, screenshot } from '../utils/puppeteer.js';
  6. it('should follow the cursor', async () => {
  7. const page = await browser.newPage();
  8. await page.goto(`${TEST_URL}/virtual-reference.html`);
  9. await scroll(page, '#scroll', 200);
  10. expect(await screenshot(page)).toMatchImageSnapshot();
  11. });