Instrumental Test: Better Espresso without sleep
Sometimes due to network fetching, we need to add
SystemClock.sleep(...) so that our instrumental test could be run and pass. This blog will show you how to eliminate the need of
sleep in your instrumental test.
Example App to Test
Assuming we have an app the perform a network fetch as below.