Skip to content

fix(detox): resolve android connectivity issues #635

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

Merged
merged 1 commit into from
Jun 30, 2025

Conversation

codeprefect
Copy link
Contributor

@codeprefect codeprefect commented Jun 30, 2025

This PR resolves a key issue preventing Detox E2E tests from connecting to the app on Android.

The root causes identified were

  • a hard dependency on com.facebook.react.modules.systeminfo.ReactNativeVersion which prevents the app from starting
  • inability to merge the androidTest source codes to the application code at build time

Why it matters:
Without this fix, Detox hangs indefinitely trying to connect to the app, even though the test server and device are both correctly configured.
Potentially fixes #189

@codeprefect codeprefect marked this pull request as ready for review June 30, 2025 13:41
@codeprefect codeprefect changed the title fixed detox android issues fix(detox): resolve android connectivity issues Jun 30, 2025
@codeprefect codeprefect force-pushed the bugfix/fix-detox-issues branch from 1fd6ffe to 1532f49 Compare June 30, 2025 16:40
- added stub for ReactNativeVersion
- fixed issues preventing androidTest from being bundled into the test
- bumped version to 1.0.2
@codeprefect codeprefect force-pushed the bugfix/fix-detox-issues branch from 1532f49 to eed646b Compare June 30, 2025 16:43
Copy link
Contributor

@NathanWalker NathanWalker left a comment

Choose a reason for hiding this comment

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

💯

@NathanWalker NathanWalker merged commit 28edd9c into NativeScript:main Jun 30, 2025
@NathanWalker
Copy link
Contributor

Published in 1.0.2: 831cad1

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.

[@nativescript/detox] Cannot match elements .byLabel (with automationText) nor .byId (on android)
2 participants