Glacier960 / android-test-kit

Automatically exported from code.google.com/p/android-test-kit
0 stars 0 forks source link

Espresso click & check operations not atomic with onData adapter interactions #74

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Then you work with List's
your Matcher executed separatly with your ViewAction

In case list adapter get modified during this period of time
you get miss click or wrong check.

for sure it's ok in case your application don't update it's data during the 
test, but some application can't get such guarantee.

Original issue reported on code.google.com by sergey.d...@gmail.com on 23 May 2014 at 7:24

GoogleCodeExporter commented 9 years ago
Use the IdlingResource interface to synchronize the resource that is updating 
your adapter with Espresso. Here is a sample: 
https://code.google.com/p/android-test-kit/wiki/EspressoSamples#Using_registerId
lingResource_to_synchronize_with_custom_resource

Original comment by valera.z...@gmail.com on 31 May 2014 at 10:17

GoogleCodeExporter commented 9 years ago

Original comment by vale...@google.com on 31 May 2014 at 10:17