Detox 19.3.0 causes "View is not hittable at its visible point" failures

See original GitHub issue

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.

  1. 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

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:4
  • Comments:21 (15 by maintainers)

github_iconTop GitHub Comments

4reactions
christianrankcommented, Nov 22, 2022

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.

   Test Failed: View is not hittable at its visible point. Error: Failed to hit view with identifier `doSearch` at point {194.99999237060547, 714.33334350585938} with hit-test
    - Origin view: <UIView: 0x7f9e50b24db0; frame = (0 0; 390 844); autoresize = W+H; layer = <CALayer: 0x6000004c50a0>>
    - Absolute origin: {0, 0}
    - Hitten: <UIView: 0x7f9e50b24db0; frame = (0 0; 390 844); autoresize = W+H; layer = <CALayer: 0x6000004c50a0>>
    - Target view: <RCTView: 0x7f9e4ffa1870; reactTag: 5085; frame = (69.3333 20; 251.333 51.3333); backgroundColor = UIExtendedSRGBColorSpace 0.0117647 0.6 0.890196 1; layer = <CALayer: 0x6000004dd0a0>>
    - Relative point: {194.99999237060547, 714.33334350585938}
2reactions
asafkoremcommented, Dec 23, 2021

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 🙂

Read more comments on GitHub >

github_iconTop 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 >
detox: Versions | Openbase
Full version history for detox including change logs.
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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found