Closed compojoom closed 4 years ago
Uhh 🤦♂️
This is a known bug in RN+EarlGrey. The way EG tests for visibility is by adding a subview, but that causes a crash in RN because for some reason they decide to crash. Not much we can do. I can suggest not testing visibility on scroll views. This will be sorted out in our rewrite.
As a workaround, you can also disable the assertion in the RN code while debugging to prevent the crash.
Aaaah, thanks @LeoNatan ! I saw an issue that was talking about that, but I thought you guys were talking about checking whether a ScrollView is visible and what I do is check whether an element in the scrollview is visible.
All right! I wrapped the scrollview and moved the testID from it to the View. Test pass in debug mode as well.
Thanks again!
Description
I'm running a test on our app in debug mode and detox crashes. Running the same test in release mode works fine.
The crash stack:
Reproduction
The line it chokes on is not really very special:
Expected behavior
Expected not to crash in debug mode
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
SDKs: iOS SDK: Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1
IDEs: Xcode: 11.3.1/11C504 - /usr/bin/xcodebuild npmPackages: @react-native-community/cli: 3.0.0-alpha.7 => 3.0.0-alpha.7 react: 16.9.0 => 16.9.0 react-native: 0.61.2 => 0.61.2 react-native-cli: 2.0.1
detox: 15.1.4
Logs
If you are experiencing a timeout in your test
If you are seeing a build problem (e.g. during
npm install
)npm install
log below:Device and verbose Detox logs
--loglevel trace
argument and am providing the verbose log below: process.log