How can you check a TextinputLayout's error with Espresso
<p>I want to be able to run a matcher against a TextInputLayout view that has an error set.</p>

<pre><code>onView(withId(R.id.myTextInputLayout)).check(matches(withText('myError')));
</code></pre>

<p>withTest() does not seem to work with the TextInputLayout error message. Does any else know how to do this? </p>

<p>Thank you for your help.</p>