android / android/testing-samples

Does Espresso work with viewBinding { enabled = true }

Abierto
#314 0 comentarios 0 reacciones 0 asignados Ver en GitHub
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

Abrir la 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

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.