-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with Detox Transition in Expo Environment #4292
Comments
@asafkorem again GestureHandler strikes back. 😅 |
Came to file an almost identical issue and hopefully offer some more diagnostic info instead of filing a duplicate: I'm seeing nearly the same thing:
Test code snip:
On app launch, Detox is able to tap the sign-in button in our app, but on page transition to fill fields or click other buttons, it hangs waiting for This is only an issue when pointing my app at our development API (which requires external network requests); if I point it at an instance of our API running locally (no external network requests), Detox has no issues navigating the app. I'm not sure if it's related (it doesn't seem like anything Detox would involve itself with?) but felt it might be worth a mention considering it's the only variant factor. It works if I use I know y'all don't support Expo, but I'm not sure Expo is the issue here given it works fine when there isn't an external network call involved. Thank you for your time! Detox version: 20.13.5 |
Try using the iPhone 12 Pro Max version |
In case it's helpful to anyone else: for us, this turned out to be an issue with LogRocket - not sure exactly what it's doing under the hood, but it seems to be hogging UI resources so Detox waits forever (I imagine that's what |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions! For more information on bots in this repository, read this discussion. |
Description
Hello,
I'm encountering a specific issue while using Detox in conjunction with Expo SDK 48.0.0. Upon attempting to transition to the next screen after tapping a button, the test doesn't proceed as expected. This inconsistent behavior occurs only in the test environment, whereas the simulator operates correctly.
This looping persists until it exceeds the 120000ms timeout.
Test Code:
Welcome Screen Button:
<Button testID="btnregister" text="Start now" path="Register" />
Button Component:
What could I do to fix it?
Thank you in advance for your attention and support in resolving this issue.
Your environment
Detox Version: 20.13.5
Expo SDK: 48.0.0
Operating System: macOS M1 Sonoma 14.1.1
Node: 18.16
Device Model: iPhone 15
The text was updated successfully, but these errors were encountered: