0
votes

I'm writing automation test with Detox for my react native app. Main screen of my app has a TabNavigator component.

How can I reach some specific tab in Detox test? Can I set testID for tabs in TabNavigator?

Any help will be highly appreciated

1
Did you find out dude ? Same problem hereMayoul
Actually I used by.text() matcher to reach my tab.user359698

1 Answers

0
votes

in your navigationOptions add tabBarTestID: 'Tab element' property and call await element(by.id('Tab element')).tap();