package me.soundlocker.soundlocker;

import android.support.test.rule.ActivityTestRule;
import android.support.test.runner.AndroidJUnit4;
import android.test.suitebuilder.annotation.LargeTest;

import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;

import static android.support.test.espresso.Espresso.onView;
import static android.support.test.espresso.assertion.ViewAssertions.matches;
import static android.support.test.espresso.matcher.ViewMatchers.isDisplayed;
import static android.support.test.espresso.matcher.ViewMatchers.withText;

@RunWith(AndroidJUnit4.class)
@LargeTest
public class HelloWorldTest {

    @Rule
    public ActivityTestRule<PasswordScreen> mActivityRule = new ActivityTestRule(PasswordScreen.class);

    @Test
    public void listGoesOverTheFold() {
        onView(withText("Welcome to SoundLocker!")).check(matches(isDisplayed()));
    }

    public void generatePassword(){
        onView(withId(R.id.my_view))            // withId(R.id.my_view) is a ViewMatcher
                .perform(click())               // click() is a ViewAction
                .check(matches(isDisplayed())); // matches(isDisplayed()) is a ViewAssertion
    }
}

@@ -328,16 +328,86 @@
 onView;%0A
+import static android.support.test.espresso.action.ViewActions.click;%0A
 import s
@@ -554,16 +554,89 @@
 played;%0A
+import static android.support.test.espresso.matcher.ViewMatchers.withId;%0A
 import s
@@ -1027,85 +1027,643 @@
 ));%0A
+%0A
     
-%7D%0A%0A    public void generatePassword()%7B%0A        onView(withId(R.id.my_view
+    onView(withId(R.id.genPass))            // withId(R.id.my_view) is a ViewMatcher%0A                .perform(click())               // click() is a ViewAction%0A                .check(matches(isDisplayed())); // matches(isDisplayed()) is a ViewAssertion%0A        onView(withText(%22This is a test password.%22)).check(matches(isDisplayed()));%0A%0A        onView(withId(R.id.chooseSong))            // withId(R.id.my_view) is a ViewMatcher%0A                .perform(click())               // click() is a ViewAction%0A                .check(matches(isDisplayed())); // matches(isDisplayed()) is a ViewAssertion%0A%0A        onView(withId(R.id.copy
 ))  
@@ -1877,20 +1877,21 @@
 ewAssertion%0A
+%0A
     %7D%0A%7D%0A

Create a test for all visible elements on the screen.