Closed crazyvan closed 1 month ago
@crazyvan, hi, could you elaborate more, please? It seems that we have now some feature parity between iOS/Android regarding web views, but I have a gut feeling that your problem is slightly more intricate than that.
After opening the app, you're presented with a Log in button. On tap, Expo's AuthSession library is used to perform a browser based OAuth flow:
AuthRequest.promptAsync
opens up a Custom Tab on Android which takes you to an auth provider log in page where you enter an email address and a one time password. I'm not able to fill in the inputs for these using Detox because they're not within a web view.A more brief description of the flow can also be found here.
Very similarly I have an App using Okta react native browser based authentication but cannot find if Detox supports testing screens behind such login.
Description
Hi, I have an app which uses expo's AuthSession to authenticate users. Under the hood, on Android this uses Custom Tabs to open the browser and direct the user to the auth flow. Will Detox support testing this use case or is it outside the scope of the project? Thanks!
Your environment
Detox version: 20.18.5 React Native version: 0.71.12 Node version: 21.6.2 Device model: Pixel_8_Pro_API_34 OS: macOS 14.2.1 Test-runner (select one): jest