grey_scrollInDirection action fails if translucent bar appear on top of scroll view
- Dominant language
- Objective-C
- Stars
- 5.7k
- Forks
- 737
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 5
Description
Demo project: https://github.com/wix/EGTabScrollTest
I have the most basic of view hierarchy—a tableview (scroll view) that is embedded in a navigation controller and tab bar controller. As any proper app should, the tab bar and navigation bar are translucent, and are put on top of the table view. This is countered by iOS by setting top and bottom content offset.
It seems Earl Grey does not take this very common pattern into account. It attempts to scroll from the bottom bar, instead of starting the touches from above it (by taking into account the bottom content inset).
See attached project. When tested under iOS 10, it will display the touches Earl Grey simulates.
Contributor guide
Research direction
Reproduce the failure with the linked EGTabScrollTest demo on iOS 10, using the grey_scrollInDirection action and its displayed touches. Start at that action's implementation and verify behavior with translucent navigation and tab bars over the table view; done means scrolling begins above the bottom bar while the existing content insets are respected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, objective-c
- Domain
- mobile-dev, testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100