title: Android Espresso: How to test whether a button click migrates to a new screen?
body: <pre class="lang-java prettyprint-override"><code>onView(withId(R.id.BUTTON))
      .perform(click())
      .check(matches(withContentDescription(R.id.my_layout)));
  onView(withId(R.id.tp_layout))
      .check(matches(isDisplayed()));
  </code></pre>
  
  <p>I am trying to test whether button click migrates to next screen or not..
  how can I match, with this only first test is running and it displays tests failed.</p>