Skip to content
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

Move react-native-navigation tests to dynamic fixture setup #2202

Merged
merged 5 commits into from
Sep 24, 2024

Conversation

yousif-bugsnag
Copy link
Contributor

@yousif-bugsnag yousif-bugsnag commented Sep 19, 2024

Goal

Converts the e2e tests for @bugsnag/plugin-react-native-navigation to the dynamic fixture setup and adds e2e tests for React Native 0.71 and 0.72.

Design

This requires a separate test fixture, which is generated dynamically if the REACT_NATIVE_NAVIGATION environment variable is set.

The scenarios and feature files have also been separated as previously these used the same naming as the react-navigation scenarios.

Due to some issues in react-native-navigation itself, these tests are currently skipped for:

  • React Native versions 0.73+ (not yet supported by rnn-link)
  • iOS New Architecture (react-native-navigation fails to build on iOS when New Architecture is enabled)

The legacy static e2e tests for react-navigation and react-native-navigation have been removed.

Testing

Covered by a full CI run

Copy link

github-actions bot commented Sep 19, 2024

@bugsnag/browser bundle size diff

Minified Minfied + Gzipped
Before 45.31 kB 13.78 kB
After 45.31 kB 13.78 kB
± No change No change

code coverage diff

<temporarily disabled>

Generated by 🚫 dangerJS against 38fbff2

@yousif-bugsnag yousif-bugsnag force-pushed the PLAT-12066/wix-rn-navigation-dynamic-fixture branch 3 times, most recently from a43168b to ee80c8e Compare September 23, 2024 10:31
Base automatically changed from PLAT-12066/rn-navigation-dynamic-fixture to next September 23, 2024 12:32
An error occurred while trying to automatically change base from PLAT-12066/rn-navigation-dynamic-fixture to next September 23, 2024 12:32
@yousif-bugsnag yousif-bugsnag force-pushed the PLAT-12066/wix-rn-navigation-dynamic-fixture branch from ee80c8e to 11aa3df Compare September 23, 2024 12:49
@yousif-bugsnag yousif-bugsnag force-pushed the PLAT-12066/wix-rn-navigation-dynamic-fixture branch from 11aa3df to 38fbff2 Compare September 23, 2024 13:58
@yousif-bugsnag yousif-bugsnag marked this pull request as ready for review September 24, 2024 08:55
Comment on lines +392 to +393
# Skipped due to build failures with react-native-navigation when new arch is enabled
# TODO: Investigate and try to re-enable when we add tests for more recent React Native versions
Copy link
Member

Choose a reason for hiding this comment

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

prefer raising a ticket and adding skip: "See PLAT-1234" than commenting out

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Discussed this with @tomlongridge and we decided not to raise a ticket for this because it's not something we can fix on our side - instead we'll re-assess when we come to add the next RN version to the test matrix.

@yousif-bugsnag yousif-bugsnag merged commit 7e17c19 into next Sep 24, 2024
129 checks passed
@yousif-bugsnag yousif-bugsnag deleted the PLAT-12066/wix-rn-navigation-dynamic-fixture branch September 24, 2024 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants