architecture-samples
architecture-samples copied to clipboard
[todo-mvvm-live-kotlin] Espresso idle counter gets corrupted
In todo-mvvm-live-kotlin in Util/ViewExt.kt, in the callback of the showSnackbar function there gets the EspressoIdlingResource incremented and decremented. The problem is, that if onDismissed is called before onShown, the counter gets corrupted. This case may happen if showSnackbar is called two times in a really short period of time.
Yeah we fixed this in the testing codelab, which will be merged soon with this project.
Actually let's keep this one open until we merge.
@JoseAlcerreca hi, can u please provide the reason this branch ( maybe all) using full of activity and inside activity have only 1 fragment ( which i remember that google recommended to use 1 activity 1 fragment )