Ola boa dia,
Estou com erro ao testar class ListaLeilaoTelaTest, aqui o erro que esta mostrando no terminal:
Testing started at 16:46 ...
01/10 16:46:13: Launching ListaLeilaoTelaTest
Running tests
$ adb shell am instrument -w -r -e debug false -e class 'br.com.alura.leilao.ui.recyclerview.adapter.ListaLeilaoTelaTest' br.com.alura.leilao.test/android.support.test.runner.AndroidJUnitRunner
Client not ready yet..
Started running tests
android.support.test.espresso.NoMatchingViewException: No views in hierarchy found matching: with text: is "casa"
tambem class ListaLeilaoTelaTest:
public class ListaLeilaoTelaTest{
@Rule
public ActivityTestRule activity = new ActivityTestRule(ListaLeilaoActivity.class, true, true);
@Test
public void get_ShowUmLeilao(){
Espresso.onView(ViewMatchers.withText("casa")).check(ViewAssertions.matches(ViewMatchers.isDisplayed()));
// Espresso.onView(withText(endsWith("casa"))).check(matches(isDisplayed()));
}
}
Lembrando que eu ja comentei:
//itemView.setVisibility(View.VISIBLE);