We have UI E2E tests in place in our app. We had a...
# compose
l
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
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
Thanks for the suggestion.