Closed fknives closed 2 years ago
Emulator Looks like some kind of synchronisation issue: Emulator-Test-Results-21.zip Emulator-Logcat-Logs-21.zip
The views are being animated out, so they still somewhat show when checking ^^
Robolectric Similar thing in JVM, the TextView is not yet showed. JVM Test Results.zip
After investigations, it seems to boil down to 2 issues:
ItemAnimator The solution for here should be straight forward, via Espresso Remote the itemAnimator before checking the RecyclerView.
Retrofit race condition Since we cannot yet Replace Dispatchers.Default in tests, the best course of action for now, is to simply have a delay in the OkHttpIdling resource. It's documentation should describe why it's necessary and include the specific issues:
Describe the bug An issue occurred when testing Home screen's RecyclerView
Logs Emulator-Test-Results-21.zip
Additional context Emulator 21