(webdriverio): fix - scrollIntoView calls scroll action with a wrong …#11496
(webdriverio): fix - scrollIntoView calls scroll action with a wrong …#11496christian-bromann merged 2 commits intomainfrom unknown repository
Conversation
christian-bromann
left a comment
There was a problem hiding this comment.
LGTM 👍
@erwinheitzman what do you think?
erwinheitzman
left a comment
There was a problem hiding this comment.
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
scrollaction. We should not usedeltaXvalue intoxargument.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