-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
Fix Detox Tests #30312
Fix Detox Tests #30312
Conversation
Base commit: fc0b3fa |
Base commit: fc0b3fa |
Thanks for the fix! Can you re-enable the detox tests on Circle CI as part of this PR? I think you'd only need to uncomment some lines in |
579c8c0
to
b51b25e
Compare
@hramos I enabled detox tests for iOS in circleci but they are failing because react native fails to build for iOS (mainly for arm64 and i386). I faced the same issue locally when I was building rn-tester for iOS, which I fixed by following the solution in this issue #29984, which was to exclude
Do you have any ideas about what is causing this issue? |
There are a few issues here:
|
Summary: This yarn.lock file was regenerated by deleting the existing yarn.lock file and rerunning `yarn install`. The current `yarn.lock` file is fairly out of date and is affecting the CI servers. More specifically, fsevents@1.2.7, [referenced in yarn.lock here](https://github.com/facebook/react-native/blob/46be292f671c70aac4ecc178c96e3a2a6a3d16da/yarn.lock#L3215), [fails to compile](fsevents/fsevents#272) on node 12 or later. This causes the [yarn install step on CI to error](https://app.circleci.com/pipelines/github/facebook/react-native/7065/workflows/de2bebff-33a5-4d2e-bc73-f7f380641452/jobs/176266/parallel-runs/0/steps/0-104). This PR is being made as 1 step in getting [the RNTester detox tests running again](#30312). We can alternatively manually update the `yarn.lock` file with [the minimum needed fsevent changes](https://github.com/facebook/react-native/compare/master...MLH-Fellowship:update-yarn-lock-fsevents?expand=1#diff-51e4f558fae534656963876761c95b83b6ef5da5103c4adef6768219ed76c2deL3215-L3221) if this PR changes too much. ## Changelog <!-- Help reviewers and the release process by writing your own changelog entry. For an example, see: https://github.com/facebook/react-native/wiki/Changelog --> [Internal] [Changed] - Bump fsevents from 1.2.7 to 1.2.13. Pull Request resolved: #30361 Test Plan: Verify yarn install step on CI is fixed. Reviewed By: hramos Differential Revision: D24910611 Pulled By: cpojer fbshipit-source-id: 45a2f25a14d368d2f464e489924b1a2befbdf784
9d13995
to
766552e
Compare
82d7de3
to
195defa
Compare
2e32d0c
to
334385d
Compare
@hramos Can you review this PR again, the tests are successfully passing on circle CI now |
@utkarsh-dixit - Let's fix the analyze code step first. |
); | ||
// Disable yellowbox so that they don't cover the API's tab and make it | ||
// unaccessible for detox. | ||
LogBox.ignoreAllLogs(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's test for jest presence here and only disable Logs in detox where jest is defined.
closing this since Detox is not in the repo anymore: #32907 |
Summary
Detox tests were failing because of
DisplayIfVisible
component andYellowBox
. This PR is meant to fix these issuesChangelog
[General] [Removed]: Remove DisplayIfVisible component and use simple if else conditions to show which component to show.
[General] [Fixed]: Disable Yellow box so that it doesn't block detox to perform any action on api's tab at bottom.
[General] [Changed]: Update detox from 16.7.2 to 17.10.0
[General][Removed]: Exclude arm64 for rn-tester iOS project
[General][Changed]: Updated pod file for cocoapods dependencies
Test Plan
You can test this PR by,
yarn build-ios-e2e && yarn test-ios-e2e