Skip to content
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

Bug autoscrolling until next item at BaristaClickActions.click(id) #62

Closed
rocboronat opened this issue May 15, 2017 · 0 comments
Closed
Labels

Comments

@rocboronat
Copy link
Member

This line introduces the issue: it doesn't scroll until the View is visible, cos just matches visible things.
Espresso.onView(DisplayedMatchers.displayedWithId(id)).perform(new ViewAction[]{ViewActions.scrollTo(), ViewActions.click()});

@rocboronat rocboronat added the bug label May 15, 2017
@rocboronat rocboronat changed the title Bug scrolling until next item Bug autoscrolling until next item at BaristaClickActions.click(id) May 15, 2017
@rocboronat rocboronat added the wip label May 16, 2017
rocboronat added a commit that referenced this issue May 17, 2017
* Use strings.xml to reuse button labels, which will be great to reuse them on instrumentation tests

* Reproduce the issue #62 and improve test method names

* Fix the issue described by the new tests

* Reproduce the issue of clicking a Button repeated in multiple ViewPager pages

* Fix the issue described at last test

* Use String.valueOf() instead of ""+int to avoid a warning

* Name the exceptions to explain what they catch

* Extract methods that call Espresso to avoid having two level of abstaction levels at click() methods

* Avoid unused imports

* Avoid lines larger than 140 chars
@rocboronat rocboronat removed the wip label May 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant