You don’t need an
sleep() is fickle. Make Espresso wait for your observables running on background schedulers with this one cool trick!
When we stub an intent, we are able to intercept it so the intent is never sent to the system, and specify how it should respond. This can be helpful in your Android tests when you need to know if an intent was sent, but you don’t actually need the Activity to start. This can be accomplished by using espresso-intents.
Using espresso-intents for testing Android Activity Intents