Bez popisu

containing-block.test.js 370B

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