android / android/testing-samples
Does Espresso work with viewBinding { enabled = true }
- Lenguaje dominante
- Java
- Estrellas
- 9.3k
- Forks
- 3.6k
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
My espresso tests were working fine before I updated to AS 3.6 with
```
viewBinding {
enabled = true
}
```
Now, when I do something like this it is not working:
```
public static void tapCard(String PageName) throws Throwable {
Lets.performAndTakeSS(On.LocationsListDetails.CARDS_RECYCLER_VIEW, RecyclerViewActions.scrollTo(hasDescendant(EspressoMatchers.withText(EspressoMatchers.endsWith(PageName)))));
Lets.performAndTakeSS(On.LocationsListDetails.CARDS_RECYCLER_VIEW, RecyclerViewActions.actionOnItem(hasDescendant(EspressoMatchers.withText(EspressoMatchers.endsWith(PageName))), click()));
}
```
Am I supposed to change anything to work with viewbinding? Seeing this issue especially with Fragments.
Guía de contribución
Línea de trabajo
Comienza reproduciendo el fallo de Espresso después de habilitar viewBinding en la configuración mostrada, centrándote en el helper tapCard y en los casos de fragment mencionados. Compara el comportamiento antes y después de habilitar viewBinding; done debería establecer si se requiere un cambio para estas interacciones de Espresso y documentar o verificar el comportamiento que funciona.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- android, java
- Área
- mobile-dev, testing
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 25/100