Skip to content

test: add back @testing-library/react-native concurrentRoot in tests.#14454

Merged
Prithpal-Sooriya merged 11 commits into
mainfrom
upgrade-testing-library-react-native-concurrent-root-fixes
Apr 8, 2025
Merged

test: add back @testing-library/react-native concurrentRoot in tests.#14454
Prithpal-Sooriya merged 11 commits into
mainfrom
upgrade-testing-library-react-native-concurrent-root-fixes

Conversation

@Prithpal-Sooriya

@Prithpal-Sooriya Prithpal-Sooriya commented Apr 4, 2025

Copy link
Copy Markdown
Contributor

Description

As described in this PR #14450.

NEW FEATURES - CONCURRENT RENDERING
This adds support for React 18 concurrent rendering. Even if we don't support react 18, it will help us write better components and tests that handle:

  • prop & selector changes
  • useEffects
  • loading states

This PR adds back concurrentRoot in our react-native tests, and fixes tests that fail due to async behaviours.

Related issues

Fixes:

Manual testing steps

Ensure unit tests all pass

Screenshots/Recordings

Before

After

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

@github-actions

github-actions Bot commented Apr 4, 2025

Copy link
Copy Markdown
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@Prithpal-Sooriya Prithpal-Sooriya added the DO-NOT-MERGE Pull requests that should not be merged label Apr 4, 2025
@Prithpal-Sooriya Prithpal-Sooriya changed the title Upgrade testing library react native concurrent root fixes TEMP: testing library react native concurrent root fixes Apr 4, 2025
Comment thread app/components/UI/PaymentRequest/index.test.tsx
Comment thread app/components/UI/SolanaNewFeatureContent/SolanaNewFeatureContent.tsx Outdated
@Prithpal-Sooriya Prithpal-Sooriya changed the title TEMP: testing library react native concurrent root fixes test: testing library react native concurrent root fixes Apr 7, 2025
@Prithpal-Sooriya Prithpal-Sooriya marked this pull request as ready for review April 7, 2025 20:54
@Prithpal-Sooriya Prithpal-Sooriya requested review from a team as code owners April 7, 2025 20:54
@Prithpal-Sooriya Prithpal-Sooriya changed the title test: testing library react native concurrent root fixes test: add back @testing-library/react-native concurrentRoot in tests. Apr 7, 2025
@github-actions

github-actions Bot commented Apr 7, 2025

Copy link
Copy Markdown
Contributor

https://bitrise.io/ Bitrise

❌❌❌ pr_smoke_e2e_pipeline failed on Bitrise! ❌❌❌

Commit hash: 3d1e22f
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/690f0a9e-e461-444e-be00-c307ff5fc86c

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

Tip

  • Check the documentation if you have any doubts on how to understand the failure on bitrise

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 66.43%. Comparing base (44bb493) to head (3d1e22f).
Report is 31 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #14454      +/-   ##
==========================================
+ Coverage   66.29%   66.43%   +0.13%     
==========================================
  Files        2248     2251       +3     
  Lines       48037    48093      +56     
  Branches     6766     6774       +8     
==========================================
+ Hits        31848    31950     +102     
+ Misses      14172    14125      -47     
- Partials     2017     2018       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

github-actions Bot commented Apr 8, 2025

Copy link
Copy Markdown
Contributor

https://bitrise.io/ Bitrise

🔄🔄🔄 pr_smoke_e2e_pipeline started on Bitrise...🔄🔄🔄

Commit hash: fb42b16
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/c0572cd0-e8c4-488a-9443-315ab68e1c08

Note

  • This comment will auto-update when build completes
  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

@Prithpal-Sooriya Prithpal-Sooriya removed the DO-NOT-MERGE Pull requests that should not be merged label Apr 8, 2025
this improves test to prevent null elements
@github-actions

github-actions Bot commented Apr 8, 2025

Copy link
Copy Markdown
Contributor

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: 524f643
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/28ee3cc3-c89d-4106-b0c1-71970d09b24f

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

@sonarqubecloud

sonarqubecloud Bot commented Apr 8, 2025

Copy link
Copy Markdown

@NicolasMassart NicolasMassart left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New matchers 🎉 Thanks!

@OGPoyraz OGPoyraz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmation changes LGTM

@Prithpal-Sooriya Prithpal-Sooriya added this pull request to the merge queue Apr 8, 2025
Merged via the queue into main with commit 0751682 Apr 8, 2025
@Prithpal-Sooriya Prithpal-Sooriya deleted the upgrade-testing-library-react-native-concurrent-root-fixes branch April 8, 2025 13:55
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 8, 2025
@metamaskbot metamaskbot added the release-7.45.0 Issue or pull request that will be included in release 7.45.0 label Apr 8, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-7.45.0 Issue or pull request that will be included in release 7.45.0 team-assets

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants