title: Is there any way to know if an activity has been started with Espresso?
body: <p>I'm doing an Activity transition testing with Espresso but I don't know if this is the best way to do it:</p>
  
  <pre><code>public void testStartLogin() {
      onView(withId(R.id.register)).perform(click());
      onView(withId(R.id.login_password)).check(matches(isDisplayed()));
      onView(withId(R.id.login_show_password)).check(matches(isDisplayed()));
  }
  </code></pre>
  
  <p>The last two are from the second activity but this looks horrible for me. Is there any different way?</p>