ghd214 / android-test-kit

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

Espresso does not wait until SwipeRefreshLayout RefreshListener finished #131

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

git clone https://github.com/andnexus/android-testing

1. Run emulator without gpu on and turn off animation
2. Replace line 41 in 
master/app/src/androidTest/java/com/andnexus/android/tests/MainActivityTest.java
:

- onView(withId(R.id.action_refresh)).perform(click());
+ onView(withId(R.id.refresh)).perform(swipeDown());

What is the expected output? What do you see instead?

Test should pass like it does with current committed code but it does not.

What version of the product are you using? On what operating system?

Variant build from master with BuildType debug.

# Create and start emulator
android create avd --force --name test --target android-19 --abi armeabi-v7a
emulator -avd test -no-skin -no-audio -no-window

# Disable lock screen if device is reade
adb shell input keyevent 82

Original issue reported on code.google.com by Benjamin...@gmail.com on 9 Feb 2015 at 4:14

GoogleCodeExporter commented 9 years ago

Original comment by nkors...@google.com on 4 Mar 2015 at 6:41

GoogleCodeExporter commented 9 years ago

Original comment by nkors...@google.com on 5 May 2015 at 5:43

GoogleCodeExporter commented 9 years ago
Latest code on https://github.com/andnexus/android-testing does not compile. 
I'm closing this. Please reopen if still in issue.

Original comment by slinz...@google.com on 6 May 2015 at 9:36

GoogleCodeExporter commented 9 years ago
Code does compile again and issue is still there.

Original comment by Benjamin...@gmail.com on 6 May 2015 at 2:10