-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
(webdriverio): fix - scrollIntoView calls scroll action with a wrong … #11496
(webdriverio): fix - scrollIntoView calls scroll action with a wrong … #11496
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
@erwinheitzman what do you think?
870d6dc
to
650b81a
Compare
650b81a
to
a103bc1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution, LGTM 👍
@qaflorent mind updating the snapshots and make the tests pass? |
Of course, sorry I missed that. Should be good now. |
Tests are failing for different reasons. I will go ahead and merge this one and fix the tests in |
Congratulations @qaflorent on your remarkable first contribution to WebdriverIO! This project thrives on the invaluable involvement of our community, and we are truly grateful for your contribution. We eagerly anticipate witnessing more of your exceptional work, so please don't hesitate to inform us if we can assist you in identifying intriguing areas where you can make further contributions. Join our lively Discord channel and reach out to us; we would be delighted to connect with you. Your efforts are deeply appreciated, and we extend our heartfelt gratitude to you. 🙏 ❤️ |
Could you please help understand in which version this will be delivered? |
It should be delivered in 8.21.0, but it seems the fix is not sufficient/good. I still have big troubles to test it (trying and trying again locally), but @erwinheitzman , I would like to try replacing |
@qaflorent you can make the change directly in your |
Proposed changes
From the last improvement in the function, a bad argument is sent to the
scroll
action. We should not usedeltaX
value intox
argument.This fixes #11272
Types of changes
Checklist
Further comments
I tested in a local project but I wasn't sure how to add or update existing tests inside webdriverio project. I was not able to reproduce the issue with existing tests but with my own.
Here is the test I used to see the log disappeared.
The fix should be also testable using example provided in the initial ticket description by Lara.
Reviewers: @webdriverio/project-committers
@erwinheitzman since you worked in it recently