chore(test): prepare tests to be run with Puppeteer-Firefox (#3833)

This patch aligns Puppeteer testing infrastructure with the approach
we use in Puppeteer-Firefox.

This patch:
- makes all tests accept Puppeteer object as a function argument
  rather than require it statically. This way we can pass either
  Puppeteer or Puppeteer-Firefox to drive tests.
- renames the `puppeteer.spec.js` into `launcher.spec.js`. The
  `puppeteer.spec.js` is now the entry point for all cross-browsers
  tests.
This commit is contained in:
Andrey Lushnikov
2019-01-24 01:04:42 -05:00
committed by GitHub
parent 7585e6db9e
commit 1a7995558f
31 changed files with 579 additions and 549 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 B