*What steps will reproduce the problem?*
1. Create a new project in android studio using fullscreen activity code
template
2. Write an espresso test for the activity to perform click
public class FullscreenActivityTest extends
ActivityInstrumentationTestCase2 {
public FullscreenActivityTest() {
super(FullscreenActivity.class);
}
@Override
protected void setUp() throws Exception {
super.setUp();
getActivity();
}
public void testClickingOnLayout() {
onView(withId(R.id.fullscreen_content)).perform(click());
}
}
3. Run this test on emulator (any android version from ginger bread to
lollipop).
*I get this error*
https://gist.github.com/rpattabi/c8bff2e6556bbbeb65ad#file-espresso_fullscreen_c
lick_error
*I have ensured the following:*
- No lock screen on the emulator
- All animations turned off
- No on-screen keyboard, or anything overlayed on top of the app.
*What is the expected output? What do you see instead?*
Click should work on fullscreen too just like non-fullscreen activities
*What version of the product are you using? On what operating system?*
Espresso 2.0; Ubuntu 14.04 64bit
*Additional Info*
I have attached the zip of the sources which reproduce the problem.
Original issue reported on code.google.com by ragunath...@gmail.com on 29 Mar 2015 at 1:26
Attachments:
public class FullscreenActivityTest extends
ActivityInstrumentationTestCase2 {
public FullscreenActivityTest() {
super(FullscreenActivity.class);
}
}
Original issue reported on code.google.com by
ragunath...@gmail.comon 29 Mar 2015 at 1:26Attachments: