Performing swipe action call to DrawerActions.openDrawer() results in IdlingResourceTimeoutException
Closed this issue · 8 comments
GoogleCodeExporter commented
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
Original comment by vale...@google.com
on 7 May 2014 at 7:13
- Changed state: Accepted
GoogleCodeExporter commented
Issue 67 has been merged into this issue.
Original comment by vale...@google.com
on 7 May 2014 at 7:14
GoogleCodeExporter commented
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
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
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
is it fixed now?
Original comment by iamcine...@gmail.com
on 14 Dec 2014 at 10:40
GoogleCodeExporter commented
Fixed in Espresso 2.0
Original comment by vale...@google.com
on 20 Dec 2014 at 4:33
- Changed state: Fixed
GoogleCodeExporter commented
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