HakAl / android-test-kit

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

Non-View actions (device rotation, Home key, Menu key, status bar notifications)? #26

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I am aware that this is might not be strictly an espresso-specific 
functionality. One can use getActivity() as part of 
ActivityInstrumentationTestCase and from there, use setRequestedOrientation.

However, this method is asynchronous and currently, one is forced to use 
Thread.sleep() and other such to "Wait" until the rotation is complete before 
continuing with asserts. This is the exact sort of flaky code that espresso 
aims to avoid.

Is it probable that espresso will provide actions for non-view actions?

Original issue reported on code.google.com by techie.c...@gmail.com on 26 Nov 2013 at 12:48

GoogleCodeExporter commented 9 years ago
I just realized that this question should have gone on the google group rather 
than as an issue. Apologies!

Original comment by techie.c...@gmail.com on 26 Nov 2013 at 12:55

GoogleCodeExporter commented 9 years ago
This is outside the scope of Espresso.

Original comment by vale...@google.com on 16 Dec 2013 at 6:08