https://kotlinlang.org logo
#compose
Title
# compose
l

Luca Nicoletti

03/15/2023, 1:00 PM
We have UI E2E tests in place in our app. We had a native login, which we now moved to WebAuth0 login (so a WebView - from another activity - is launched). We’re not unable to fill the fields and click on the login button, any suggestion on how to solve this?
r

Rajar

03/15/2023, 6:20 PM
Encapsulate through an interface the Auth Intent builder which will use your test activity during E2E tests ; and of course prod concrete impl will remain your WebAuth0 usage. See https://github.com/chrisbanes/tivi/blob/main/api/trakt-auth/android/src/main/java/app/tivi/trakt/TraktAuthManager.kt#L25
l

Luca Nicoletti

03/16/2023, 10:38 AM
Thanks for the suggestion.
6 Views