I am trying to do some UI testing in isolation on some fragments that uses a shared Bottom navigation view from MainActivity, basically used to navigate and to scroll up and down, but my tests fails with nullpointerException basically because the buttons inside the bottom navigation view are not found in the fragment layout. My question is how to pass these layouts belonging to mainactivity to the fragmentTest class.
Aucun commentaire:
Enregistrer un commentaire