-
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
.scrollTo() gets stuck on Android #2787
Comments
@Sonakshi997 it's really hard to tell what wrong this way. Could you please use the Also, before doing so, please also add logs before, after and in between the Thanks. |
@d4vidi I understand. Here is what you asked for. I hope the issue gets clear now as I am facing this on various different screens now. Also, the What is expected from the
|
@Sonakshi997 this is great, thank you. Please also spot a file called |
I understand @d4vidi . I tried finding this file, but could not. Can you describe in detail where can I find this file. That will help a lot. |
Apply the |
Hi @d4vidi . Here is the process.log file you requested. Let me know if anything else is required from my side. I can see this scrollTo() issue in various more files. I hope it gets resolved soon. Thanks. |
Hi @d4vidi . I was able to overcome this stuck
I believe this is just a temporary solution or a hack to make things work for now. Let me know if there is any progress at your part. |
Yikes. There shouldn't be such hacks in Detox. @jonathanmos could we get to the bottom of this together? |
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 reporsitory, read this discussion. |
The issue has been closed for inactivity. |
@jonathanmos were you able to make any progress here? |
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 reporsitory, read this discussion. |
@Sonakshi997 I was not able to reproduce this issue, except when the soft keyboard was open due to typing in the textfield - in which case, I added tapReturnKey to dismiss it and the test subsequently passed properly. What is the purpose of tapAtPoint? Is it to dismiss the keyboard or for another reason? |
This issue has been automatically closed because there has been no response to our request for more information from the original author. For more information on bots in this reporsitory, read this discussion. |
I'm seeing this exact issue. Works fine on iOS but Android hangs until timing out on
|
Yes, after typing on an input field, to dismiss the keyboard I used tapAtPoint(which works fine). But here the issue comes after when I think, on applying scollTo('direction') it should go in either direction, but rather the screen stays still. The console shows me initially it is busy with threads and then app is idle comes 'n' number of times and on the UI nothing happens. Just still. No particular reason I could find too for the screen stuck as there was no interruption at the screen as well. |
This is STILL not fixed. I cannot understand the logic of closing issues for inactivity, when the developers are the ones who are the ones who are inactive. This makes Detox essentially worthless for Android development. Is that not a priority? Serious question. |
Anyone else running into this could consider this workaround
|
I have the same problem. But none of the suggested fixes did it for me. I wonder why there is not more people with this issue, should be a very common issue to bump into |
Ahhhh crud, I was using an Android 11 phone when I thought I was using an Android 13 one. Adding |
To the all interested parties, please try out Thanks to @patriksletmo for providing an experimental hotfix. 🏆 Let's find out if it solves your issues with the scrolling or swiping - please give us and @patriksletmo some feedback. cc @poojan010, @celian-rib, @seth-nelson, @klcantrellsep (you placed only emojis on the messages, so I'm just making sure you see this update) |
Any updates about 20.13.2-smoke.0? |
Did not work |
@poojan010 would you mind to record a video artifact with an example of what's happening there on a scroll attempt? |
sure i'll provide video today |
I've just given this a shot in hope this might help with some of the issues we have been running into with android. Seems to have resolved the issue with scroll getting stuck, but we are still seeing swipe getting stuck in the same way. |
@Seraphiyra well, as long as it does not break something and fix something, it is good for me to release. Thanks for the confirmation! If someone can fiddle with our Android source for swipe handlers, similarly to #4225, please share your solution. We'll make sure to release a public beta as soon as you submit and it passes our E2E tests. |
Not working for Me Screen.Recording.2023-10-24.at.11.11.32.AM.movsimple.test.js
App.js
|
@poojan010 , what is happening here? 🤯 🤯 🤯 🤯 🤯 🤯 🤯 🤯 🤯 🤯 🤯 Do I understand correctly that a scroll gesture is interpreted as some system UI action, and it gets interpreted by Android itself? If so, I wonder, can't you disable some gestures on your emulator? |
I had a busy day today, so I'd refrain from releasing when I'm leaving the office. Tomorrow I'll release that smoke version. UPD: A partial fix was released in |
@noomorph I had a little bit of a poke into this, but alas no success😞 I tried a few things, but in the end by changing from API 33 -> 32 was able to get swipe to work for us again. This was a not ideal, albeit quick, fix to enable us to keep our tests running and not block releases. We currently use significantly more swipe actions than scroll actions in our test suite. So that means this will go into my backlog to poke at again (if others don't fix beforehand 🤞) |
@Seraphiyra, thanks for trying! I hope someone takes it soon. I communicated the importance of these issues to my team, but the ETA is not clear yet. |
@poojan010 I think that @gosha212 will look quite soon into your case. There's a plan to fix scroll/swipe conflicting with Android's gesture handling. |
Hi @poojan010, |
Ran into this issue today, the workaround of adding style={{flex: 1}} to the parent view fixes the scrollTo command for us. Android API 30, detox 20.14.8 Hope there'll be a proper fix, soon! |
Describe the bug
I've been using detox from last few months and this issue came into my observation. On the simulator I cannot see any motion of the scroller. I do not understand any reason for it to not work properly.
Can it be the detox version issue?
The scroller was earlier working in all the test files so far till past 2 weeks and now failing in few of the files.
The testing screen halts when .scrollTo('top') action statement arises and nothing happens afterwards.
If anyone have any solution to this, please share. It would be of great help.
Steps To Reproduce
Expected behavior
Should have scrolled the screen in either direction.
Detox Trace-Logs
Full log trace ->
test_log_trace.pdf
Environment :
The text was updated successfully, but these errors were encountered: