Kasiunia / android-test-kit

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

Performing swipe action call to DrawerActions.openDrawer() results in IdlingResourceTimeoutException #64

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Targeting an activity with a drawer layout, run the following test:

openDrawer(R.id.drawer_layout);
onView(withId(android.R.id.content)).perform(swipeLeft());

What is the expected output? What do you see instead?
The swipeLeft action should be performed and the drawer should close, but 
instead swipe fails due to IdlingResourceTimeoutException.

What version of the product are you using? On what operating system?
Using espresso-contrib-1.1-bundled.jar

Please provide any additional information below.
The issue could be avoided if the IdlingDrawerListener that is registered 
during the open/closeDrawer operations was removed after the operation is done.

Original issue reported on code.google.com by jflo...@phunware.com on 28 Mar 2014 at 7:50

GoogleCodeExporter commented 9 years ago

Original comment by vale...@google.com on 7 May 2014 at 7:13

GoogleCodeExporter commented 9 years ago
Issue 67 has been merged into this issue.

Original comment by vale...@google.com on 7 May 2014 at 7:14

GoogleCodeExporter commented 9 years ago
Also need to handle screen rotation (which destroys/re-creates the activity).

Original comment by vale...@google.com on 7 May 2014 at 7:15

GoogleCodeExporter commented 9 years ago
This also happens when we click an item from the drawer and it opens a new 
activity. When this happens, IdlingDrawerListener hangs

Original comment by tasoman...@gmail.com on 6 Jun 2014 at 8:53

GoogleCodeExporter commented 9 years ago
its weird...this issue only started happening for me today...for a test thats 
been running fine for weeks.

Original comment by tbola...@gmail.com on 2 Oct 2014 at 12:31

GoogleCodeExporter commented 9 years ago
is it fixed now?

Original comment by iamcine...@gmail.com on 14 Dec 2014 at 10:40

GoogleCodeExporter commented 9 years ago
Fixed in Espresso 2.0

Original comment by vale...@google.com on 20 Dec 2014 at 4:33

GoogleCodeExporter commented 9 years ago
This still happens with basic drawer usage (both open and close) randomly on 
API 19 x86 emulator with animations turned off. Runs fine on API 21 x86. 

Using Espresso 2.0 and contrib 2.0.

Original comment by darthma...@gmail.com on 6 Jan 2015 at 12:32