Detox: Detox 19.3.0 causes "View is not hittable at its visible point" failures
Description
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 trace
argument and am providing the verbose log below:
https://gist.github.com/Vannevelj/ee918001bffc5ae4c794cd76f398cff8
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 5
- Comments: 26 (15 by maintainers)
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.
@d4vidi It seems that this new hittability-check mechanism is incompatible with
FullWindowOverlay
from react-native-screens.I’m currently using
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 🙂
Hey @asafkorem @d4vidi – no worries, I totally understand more information is needed. I don’t have much time left until the holiday break so unfortunately Detox 19.3.0 has taken a backseat compared to other work. I’ll try to provide the info you asked for but at least this thread is out there for others to chime in if they see the same thing. I fully appreciate the work you’ve put into Detox, it’s made my life a lot easier.
Not sure what happened, ours one was working fine just few days back. But now I am getting the same error that my login button’s view is not hittable. I am not getting the hittable issue on local though. My current detox version is “detox”: “^19.9.2”, and jest is “jest”: “^26.6.3”
Sorry for the delayed response, I’m back in the office now. The test as it was already targetted via the
testID
. I’ve just given it a try and bumping my test suite to 19.4.1 passes without an issue – I know you’ve reverted the changes but just wanted to pass that on.I get the same error when I execute a test with Detox version 19.3.1:
I get the issue after this screen is displayed:
The steps the Detox test executes are:
I notice that after the tap on Cancel that closes the dialog, the app does not react to the first tap on the Security screen. Only a second tap on the “Unpair your device” link opens the dialog again. I can reproduce this behavior when I tap with my mouse manually.
The test works fine with Detox version 18.23.1. When I use this old version, then tapping manually works fine as well.
Android is not affected by this issue.
I use