-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Description
Did you test using the latest Detox?
- I have tested this issue on the latest Detox release and it still reproduces.
Did your test fail and you're not sure why?
- I have read the troubleshooting guide and it didn't help me.
What happened?
I used device.disableSynchronization and device.enableSynchronization previously when my tests required interacting with 3rd party apps or system native modals(for example share modal). However, with these functions are gone now, there is no way to interact with these components.
As you guys probably know it very well, when anything out of the app renders itself on the screen, Detox abruptly stops execution and nothing can be done as the program's control is not in JS thread anymore.
This needs a solution, a.s.a.p..
The error:
The erronous code: (ReactNativeIdlingResources.kt)
Help us reproduce this issue!
Anything that opens a 3rd party app or native system modal triggers this. Simply, you can create a button that opens native Share modal from React Native. Tap on that button via Detox and the app hangs forever. Detox logs app is busy, which is expected.
In what environment did this happen?
Detox version: 20.45.1
React Native version: 0.83.1
Has Fabric (React Native's new rendering system) enabled: (yes/no)
Node version: 20.19.4
Device model: Pixel_5
Android version: Android 16 (API 36)
Test-runner (select one): jest