Repository navigation
Replies: 1 comment
|
Hi @Andarius
android.R.id.homeIt normally matches the application's Detox/RN If what you want to test is the navigation behavior, the most robust Android-specific option is: await device.pressBack()Detox still exposes If you specifically need to tap the visible ActionBar "Up" button instead of performing the system back action, try matching it through its accessibility/content description with Be careful with hard-coded labels such as If the header is under your application's control, adding your own explicit accessibility identifier or So Detox does not provide a normal Please mark this answer as accepted if it helped, thank you. |
Uh oh!
There was an error while loading. Please reload this page.
Hi!
I'm trying to access the back button of
react-native-screenswhich is set by callingsetDisplayHomeAsUpEnabled(https://github.com/software-mansion/react-native-screens/blob/46794e840b9ee06008732c36b3bda61c18fe93c4/android/src/main/java/com/swmansion/rnscreens/ScreenStackHeaderConfig.kt#L183).My understanding is that to access the back button I should try to access
android.R.id.home.Is it something that is exposed by Detox? Or is there another way?
All reactions