google / google/EarlGrey

grey_scrollInDirection action fails if translucent bar appear on top of scroll view

Open
#619 6 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.