-
Notifications
You must be signed in to change notification settings - Fork 153
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
Issue/342 kautomator not working properly on views with several scrollables #344
Conversation
…ide a scrollableView with padding
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.
I believe we should also add sth abut the scrolling issues with Kaspresso (i.e. padding) and Kautomator (i.e. numerous scrollable views in the screen under test) in the readme, so that users that encounter cut problems are aware of how to workaround such problems
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.
Could you please change the target pr branch from master to that one? It would be easier to see the difference.
As far as I can see here it is ok.
Hi @eakurnikov ! |
@sergio-sastre hey, I've just checked it in your fork, thanks, it is ok. But we need small fixes in the included #321 to merge it |
Sure, I'll take a look next week. Thanks for reviewing @eakurnikov ! |
Kautomator scrolls through all the Scrollable views (also nested ones) in the hierarchy till it finds the view we want to perfom the action on
@eakurnikov, @matzuk You can review this commit I suggest to first merge the issue-306/flaky autoscroll, which I'll finish this weekend, and then I'll rebase this ticket from develop accordingly :) |
Since the autoscroll goes through all the scrollables, the (on purpose) failing tests is now passing. Not necessary anymore :)
Hey @sergio-sastre , thank you a lot, sorry for the delay, I will review the changes in the nearest few days |
I'd like to do still some small changes.
1 & 2 are easy to fix without affecting scrolling speed significantly. However, although I know how to solve 3, I think it might considerably decrease the scrolling speed, also for those layouts not containing horizontal ScrollableViews at all... I need to sleep on it |
@RuslanMingaliev @eakurnikov @RuslanMingaliev |
This PR is built on top of the issue-306/flaky_autoscroll_when_scrollview_has_padding
It adds a UiHorizontalScrollView to allow automator to explicitly scroll on HorizontalScrollViews, in order to workaround those cases in which Kautomator autoscroll do not work (i.e. numerous scrollable views on the screen)
Remark
I'd rather merge this into issue-306 before merging into master (cannot set target branch to issue-306 though), or rather merge this into master and close the PR for the issue-306, because the code is also in this PR that aims to resolve the scrolling issues with Kautomator and Kaspresso
Closes #342