-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
TabBarTestId is always a not found element #935
Comments
what error do you have? I had the same problem but solved using element(by.id('TabBarID')).atIndex(0) |
@juand89 what is the version of react-navigation you have used at that case |
@hajermay version 2.6.2 |
@juand89 im using a little bit old project with version 2.0.0 of react navigation i can guess the problem it comes from that reason. |
@hajermay yes you are right! I changed the version of react navigation to 2.0.0 and the test fails showing Cannot find UI element. |
But my problem when i upgrade to 2.2.5 for exemple it always show me
navigation.getChildNavigation is not a function i have just create this
issue on react-navigation
…On Fri, Sep 14, 2018, 9:57 AM juand89 ***@***.***> wrote:
@hajermay <https://github.com/hajermay> yes you are right! I changed the
version of react navigation to 2.0.0 and the test fails
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#935 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AVASSnVNp2WpDjIU1yEGAx6Bm8TmaitBks5ua29ngaJpZM4Wm8qm>
.
|
const MoreStack = createStackNavigator({
MoreScreen: {
screen: MoreScreen,
navigationOptions: {
headerTitle: ,
headerStyle: styles.headerCentered,
},
},
MoreStack.navigationOptions = {
tabBarIcon: ({ tintColor }) => (),
TabBarTestId: 'Child',
};
const PrimaryNav = createBottomTabNavigator({
HomeStack,
NotificationsStack,
InboxStack,
MoreStack,
},
it('should open second menu on tabbar', async () => {
await element(by.id('Child')).tap();
});
The text was updated successfully, but these errors were encountered: