-
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
Very slow replaceText
on very long strings
#4560
Comments
Detox logsDetox logs
Device logsDevice logs
|
I am having trouble to reproduce the issue on a very simple application. I am start thinking that the problem comes up when other things are involved in the project. I will try to reproduce the issue keeping the minimal elements around. In theory it could be something totally not related to Detox, or it could even be that other actors trigger pathological behavior that maybe could be fixed by Detox. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What happened?
TL;DR: In case a very long string is provided when using
replaceText
(i.e: ~16KB), the emulator hangs for a very long time.Longer explanation: in order to test an application that requires scanning QR codes with the camera, the E2E build adds a text field that can be used to directly put a JSON containing the information that could be (directly or indirectly) obtained by the QR code. The problem arises from some tests that require a relatively big JSON. I also tried to disable synchronization and
waitFor
the text field to be written, but the problem remains.What was the expected behaviour?
The operation should take a few moments, nothing more. This is the actual behavior on Android.
Was it tested on latest Detox?
Did your test throw out a timeout?
Help us reproduce this issue!
No response
In what environment did this happen?
Detox version: 20.25.5
React Native version: 0.74.5
Has Fabric (React Native's new rendering system) enabled: no
Node version: 22.2.0
Device model: iPhone 15
iOS version: 17.5
macOS version: 14.6.1
Xcode version: 15.4
Test-runner (select one): jest
Detox logs
See first comment
Device logs
See first comment
More data, please!
No response
The text was updated successfully, but these errors were encountered: