Skip to content

Instantly share code, notes, and snippets.

View dgozman's full-sized avatar

Dmitry Gozman dgozman

View GitHub Profile
@dgozman
dgozman / description.md
Created October 2, 2020 04:35
Playwright network settled helper

Network Settled

This helper waits for requests initiated by the action to finish. It is similar to waitUntil: 'networkidle' option, but is designed to work with any action, like click.

Example usage:

const waitForNetworkSettled = require('./networkSettled');

// Wait for network settled after navigation,
@dgozman
dgozman / packages.md
Last active July 28, 2020 21:35
playwright packages

playwright-{chromium,firefox,webkit}

scenarios

  • Limit downloads on CI/CD.
  • Concerned over download size on the dev box. Partially mitigated by shared install.
  • Separate versioning of browsers for easier rolls.

pros

  • Clear message - I only need one browser.
  • Do not have to ever worry about extra downloads.