[FIXED] tests things

This commit is contained in:
Robin Koedood
2021-01-06 19:51:42 +01:00
parent e3fc976f5f
commit aa6114e257
2 changed files with 0 additions and 36 deletions

View File

@@ -27,13 +27,4 @@ public class RouteFragmentTest {
onView(withId(R.id.homeFragment)).check(matches(isDisplayed()));
}
@Test
public void clickDetailButton() throws Exception{
//Here we click an item in the recyclerview and then check if the routeDetailFragment is called
mActivityTestRule.getActivity().getSupportFragmentManager().beginTransaction().replace(R.id.mainActivity, new RouteFragment()).commit();
onView(withId(R.id.route_recyclerview)).perform(RecyclerViewActions.actionOnItemAtPosition(0, click()));
onView(withId(R.id.routeDetailFragment)).check(matches(isDisplayed()));
}
}