-
-
Notifications
You must be signed in to change notification settings - Fork 307
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
[test-runner-commands] reset-mouse
command is broken with newer versions of puppeteer
#2262
Comments
reset-mouse
command is broken with latest versions of puppeteerreset-mouse
command is broken with newer versions of puppeteer
I'm seeing this as well. Another alternative solution perhaps: track whether the 3 mouse buttons are up or down and then |
This also affects unit tests with
Update: the last working version is |
The reset command was added in puppeteer/puppeteer#10340 and it looks like it's been released since puppeteer-core: v20.7.3 and browsers: v1.4.2 so I think this problem could be fixed with another update to those deps and then chaning the commands code to use I guess since the deps are new major versions (some sort of breaking change) then it would mean the modernweb package would also need a new major version? |
Yes, we probably should update to these versions and use |
This is broken since v19.10.1 (due to puppeteer/puppeteer#10021) and unfortunately wasn't marked as a breaking change and so is in scope of the current version designation of the puppeteer package.
The breakage is caused by these lines:
web/packages/test-runner-commands/src/sendMousePlugin.ts
Line 170 in e0d362f
In latest versions of puppeteer, it's an error to call
up
if the mouse button is not actually pressed.Users can implement their own reset commands to compensate (based on actual use) but I think the only easy common reset implementation would be to use
try...catch
to prevent bubbling expected errors.The text was updated successfully, but these errors were encountered: