@@ -0,0 +1,3180 @@
+package com.bourke.glimmr.activities;%0A%0A%0Aimport android.support.test.espresso.ViewInteraction;%0Aimport android.support.test.rule.ActivityTestRule;%0Aimport android.support.test.runner.AndroidJUnit4;%0Aimport android.test.suitebuilder.annotation.LargeTest;%0A%0Aimport com.bourke.glimmr.R;%0A%0Aimport org.junit.Rule;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0A%0Aimport static android.support.test.espresso.Espresso.onView;%0Aimport static android.support.test.espresso.action.ViewActions.click;%0Aimport static android.support.test.espresso.action.ViewActions.closeSoftKeyboard;%0Aimport static android.support.test.espresso.action.ViewActions.pressImeActionButton;%0Aimport static android.support.test.espresso.action.ViewActions.replaceText;%0Aimport static android.support.test.espresso.matcher.ViewMatchers.isDisplayed;%0Aimport static android.support.test.espresso.matcher.ViewMatchers.withClassName;%0Aimport static android.support.test.espresso.matcher.ViewMatchers.withContentDescription;%0Aimport static android.support.test.espresso.matcher.ViewMatchers.withId;%0Aimport static android.support.test.espresso.matcher.ViewMatchers.withParent;%0Aimport static android.support.test.espresso.matcher.ViewMatchers.withText;%0Aimport static org.hamcrest.Matchers.allOf;%0Aimport static org.hamcrest.Matchers.is;%0A%0A@LargeTest%0A@RunWith(AndroidJUnit4.class)%0Apublic class MenuCopy %7B%0A%0A    @Rule%0A    public ActivityTestRule%3CMainActivity%3E mActivityTestRule = new ActivityTestRule%3C%3E(MainActivity.class);%0A%0A    @Test%0A    public void menuCopy() %7B%0A        ViewInteraction textView = onView(%0A                allOf(withId(R.id.textNotNow), withText(%22or, just browse some photos%E2%80%A6%22), isDisplayed()));%0A        textView.perform(click());%0A%0A        ViewInteraction actionMenuItemView = onView(%0A                allOf(withId(R.id.menu_search), withContentDescription(%22Search%22), isDisplayed()));%0A        actionMenuItemView.perform(click());%0A%0A        ViewInteraction searchAutoComplete = onView(%0A                allOf(withClassName(is(%22android.widget.SearchView$SearchAutoComplete%22)),%0A                        withParent(allOf(withClassName(is(%22android.widget.LinearLayout%22)),%0A                                withParent(withClassName(is(%22android.widget.LinearLayout%22))))),%0A                        isDisplayed()));%0A        searchAutoComplete.perform(replaceText(%22spider%22), closeSoftKeyboard());%0A%0A        ViewInteraction searchAutoComplete2 = onView(%0A                allOf(withClassName(is(%22android.widget.SearchView$SearchAutoComplete%22)), withText(%22spider%22),%0A                        withParent(allOf(withClassName(is(%22android.widget.LinearLayout%22)),%0A                                withParent(withClassName(is(%22android.widget.LinearLayout%22))))),%0A                        isDisplayed()));%0A        searchAutoComplete2.perform(pressImeActionButton());%0A%0A        ViewInteraction actionMenuItemView2 = onView(%0A                allOf(withId(R.id.menu_sort_by), withContentDescription(%22Sort by%22), isDisplayed()));%0A        actionMenuItemView2.perform(click());%0A%0A        ViewInteraction textView2 = onView(%0A                allOf(withId(android.R.id.title), withText(%22Copy URL%22), isDisplayed()));%0A        textView2.perform(click());%0A%0A    %7D%0A%0A%7D%0A

Test added