Aucune description

borders-and-margins.test.js 561B

1234567891011121314151617181920
  1. /**
  2. * @jest-environment puppeteer
  3. * @flow
  4. */
  5. import { screenshot } from '../utils/puppeteer.js';
  6. it('should take in account margins and borders', async () => {
  7. const page = await browser.newPage();
  8. await page.goto(`${TEST_URL}/borders-and-margins.html`);
  9. expect(await screenshot(page)).toMatchImageSnapshot();
  10. });
  11. it('should take into account the common offset parent border', async () => {
  12. const page = await browser.newPage();
  13. await page.goto(`${TEST_URL}/container-border.html`);
  14. expect(await screenshot(page)).toMatchImageSnapshot();
  15. });