Detox 19.3.0 causes "View is not hittable at its visible point" failures
See original GitHub issueDescription
I’m on Detox 19.1.0. Upgrading to 19.2.0 works just fine and I’ve got a nice green run of my 120 tests. If I further bump to 19.3.0 then I get a large amount of failures (20+) all with the same error:
DetoxRuntimeError: Test Failed: View is not hittable at its visible point. Error: Failed to hit view at point {992, 197} with `hitTest`.
- Origin view: <UIView: 0x7fa90e910b90; frame = (0 0; 1024 1366); autoresize = W+H; layer = <CALayer: 0x600000d31320>>
- Absolute origin: {0, 0}
- Hitten: <UIView: 0x7fa90e910b90; frame = (0 0; 1024 1366); autoresize = W+H; layer = <CALayer: 0x600000d31320>>
- Target view: <RCTImageView: 0x7fa91cfccb30; reactTag: 923; frame = (290 16; 32 32); clipsToBounds = YES; layer = <CALayer: 0x600000d2f220>>
- Relative point: {992, 197}
- I have tested this issue on the latest Detox release and it still reproduces
Reproduction
Provide the steps necessary to reproduce the issue. If you are seeing a regression, try to provide the last known version where the issue did not reproduce.
- Upgrade to Detox 19.3.0
Expected behavior
Screenshots / Video
Environment
- Detox: 19.3.0
- React Native: 0.65.1
- Node: 12.13.0
- Device: iPad Mini 6th Generation (15.0) & iPad Pro 12.9-inch (5th Generation)
- Xcode: 13.0
- iOS: 11.0
- macOS: 11.6 Big Sur
- Test-runner (select one):
jest-circus
Logs
Device and verbose Detox logs
- I have run my tests using the
--loglevel traceargument and am providing the verbose log below:
https://gist.github.com/Vannevelj/ee918001bffc5ae4c794cd76f398cff8
Issue Analytics
- State:
- Created 2 years ago
- Reactions:4
- Comments:21 (15 by maintainers)
Top Results From Across the Web
Dealing With Problems With Running Tests | Detox
This page is about issues related to executing your Detox tests, typically triggered when running detox test (and not detox build, for example)....
Read more >Failed to determine hittability of an element - Apple Developer
isHittable both return true but gives an Assertion failure. Checking for the element is visible and hittable before scrolling the parentElement.
Read more >detox tests not recognising View even after adding id
I took a look at the application and was able to get it to work. I set the following in my devDependencies. "devDependencies":...
Read more >React Native end-to-end testing with Detox - LogRocket Blog
What is Detox testing framework? Detox is an end-to-end framework for mobile apps developed by Wix, one of the top contributors to the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I see the same error also on Detox 20.0.1.
After closing an alert on iOS, I can’t tap on anything anymore.
So it looks like it is broken again.
Thanks @avanderberg, I understand the issue you’re having and I’m able to reproduce this. I’m working on a fix for this bug 🙂