Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performing click on fullscreen does not work (Fullscreen Activity Code Template) #140

Open
GoogleCodeExporter opened this issue Apr 15, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

*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 [email protected] on 29 Mar 2015 at 1:26

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant