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

Espresso does not wait until SwipeRefreshLayout RefreshListener finished #131

Open
GoogleCodeExporter opened this issue Apr 15, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 9 Feb 2015 at 4:14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant