Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from Jan 24, 2019

Conversation

aslushnikov
Copy link
Contributor

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 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.
@aslushnikov aslushnikov merged commit 1a79955 into puppeteer:master Jan 24, 2019
@aslushnikov aslushnikov deleted the prepare-tests branch January 24, 2019 06:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants