FormidableLabs / react-native-app-auth

React native bridge for AppAuth - an SDK for communicating with OAuth2 providers
https://commerce.nearform.com/open-source/react-native-app-auth
MIT License
2.04k stars 441 forks source link

Interacting with In App Browser in Detox #1025

Closed skriptly closed 1 month ago

skriptly commented 2 months ago

Issue

I am trying to write end-to-end tests using Detox for my React Native app, which incorporates an in-app browser through the react-native-app-auth for handling OAuth login flows. However, I am having difficulty interacting with this in-app browser, particularly for filling out login forms and clicking buttons

I attempted to locate elements within the in-app browser using Detox’s standard by.id, by.text, and other element selectors, but Detox does not seem to recognize elements.

Questions

Is there a known way to interact with in-app browsers in Detox? Does Detox currently support interacting with in app browsers in this context?


Environment

robwalkerco commented 1 month ago

Hi @skriptly

This is not something that we can offer much help with, I'm afraid. This library does not provide any specific helpers for testing in-app modals using Detox.

I would suggest you ask this question on the Detox Discord or the Detox Repo.