[ADD] Main Activity Test

This commit is contained in:
Robin Koedood
2021-01-06 10:50:14 +01:00
parent 20c09c3458
commit 3d1cfd244b
2 changed files with 2 additions and 2 deletions

View File

@@ -41,7 +41,7 @@ public class MainActivityTest {
public void clickRouteNavBar() throws Exception{
//Here we click the back button and then we check if the statisticsFragment is shown
mActivityTestRule.getActivity().getSupportFragmentManager().beginTransaction().commit();
onView(withId(R.id.routes)).perform(NavigationViewActions.navigateTo(R.id.routes));
onView(withId(R.id.routes)).perform((click()));
onView(withId(R.id.routeFragment)).check(matches(isDisplayed()));
}