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

Increase peerDependencies to allow Puppeteer v2 #289

Merged
merged 4 commits into from Dec 18, 2019
Merged

Increase peerDependencies to allow Puppeteer v2 #289

merged 4 commits into from Dec 18, 2019

Conversation

colinrotherham
Copy link
Contributor

Summary

Currently peerDependencies only allows "puppeteer": "^1.5.0".

Puppeteer v2 was released yesterday:
https://github.com/GoogleChrome/puppeteer/releases/tag/v2.0.0

It drops support for Node.js 6, and since jest-puppeteer only supports Node.js 8+ anyway we can make this a non-breaking change.

Test plan

Currently, jest-puppeteer runs its tests using puppeteer@1.18.1, so a puppeteer upgrade actually causes a breakage in page.waitForSelector('html') where page is a frame.

It seems to be hitting this bug: puppeteer/puppeteer#2602

But the following quick fix resolves the issues:

Before

await page.waitForSelector('html')

Which causes a protocol error:

• toClick › Frame › should click using text
  Protocol error (DOM.resolveNode): Node with given id does not belong to the document

After
This works instead:

await page.waitForNavigation()

Otherwise the upgrade to Puppeteer v2 was fairly seamless.

@colinrotherham
Copy link
Contributor Author

Added Node.js 12 to the Travis config too 😊

@sidoruk-sv
Copy link

@gregberge any progress on this?

@dima-takoy-zz
Copy link

@gregberge can you merge this pr?

@gregberge gregberge merged commit 62a9b81 into argos-ci:master Dec 18, 2019
@gregberge
Copy link
Member

Thanks! Sorry for delay!

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

4 participants