liudonghua123 / android-test-kit

Automatically exported from code.google.com/p/android-test-kit
0 stars 0 forks source link

Swipe action on a view pager fails in Espresso tests on Emulator #167

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a test which performs swipeLeft() action on a view pager containing 2 
or more pages, using onView(withText("Item #1 inside the view 
pager")).perform(ViewActions.swipeLeft());
2. Run the test on Android Emulator(not genymotion or device) using API 22
3. Note the UI while test is in execution.

What is the expected output? What do you see instead?
Expected output - swipeLeft() action should take you to second page of the view 
pager.
Actual output - swipeLeft() swipes only partially due to which page does not 
turn up and you are still on page 1 of the view pager.

What version of the product are you using? On what operating system?
Espresso 2.2
Emulator API version - 22

Original issue reported on code.google.com by manis...@thoughtworks.com on 25 Jul 2015 at 5:24