V2: backButton testID
Is it possible to add a testID to the back button, or some other accessibility ID? It seems like other buttons / navbar title work, but the back button can't be accessed.
React-Native: v0.51.0 React-Native-Navigation: 2.0.2620
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe the issue is still relevant, please test on the latest Detox and report back. Thank you for your contributions.
The issue has been closed for inactivity.
The docs seem to indicate that passing a testID should work, however that doesn't seem to be the case..
@kyledmellander did find a solution to this issue?
Somebody?
Detox provides a solution for that already for RNN
if (device.getPlatform() === 'ios') {
await element(by.type('_UIBackButtonContainerView')).tap();
} else {
await device.pressBack();
}
https://stackoverflow.com/questions/51309796/how-goback-screen-in-test-with-detox
@thomas-coinjar https://github.com/wix/react-native-navigation/blob/master/lib/src/interfaces/Options.ts#L278 :)