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

Remove usage of deprecated/removed waitFor in clickAndHoverHelper scripts #1441

Merged

Conversation

flosell
Copy link
Contributor

@flosell flosell commented Oct 9, 2022

Puppeteer deprecated and by now, removed page.waitFor() (see puppeteer/puppeteer#6214). This results in TypeError: page.waitFor is not a function when using things like postInteractionWait, clickSelector and similar features relying on clickAndHoverHelper.js. See #1431 for details.

You can observe this issue when running npm run smoke-test:

Screenshot 2022-10-09 at 12 31 02

This PR fixes all usage of waitFor in examples, tests and templates used for backstop init.

Projects that ran backstop init would still need to change their version of the scripts themselves but at least for new usages, this issue would be fixed (and existing users would have a guide what a fixed version would look like)

(by the way, it's Hacktoberfest so consider opting in by adding a hacktoberfest topic to the repo before merging PRs to give contributors a chance for a tiny reward 😄 )

@garris
Copy link
Owner

garris commented Oct 9, 2022

This is great. Thank you!

@garris garris merged commit 1018f68 into garris:master Oct 9, 2022
giorgiosironi added a commit to sciety/sciety that referenced this pull request Nov 8, 2022
For context garris/BackstopJS#1441 which says we need to maintain this ourselves
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