diff --git a/app/src/androidTest/java/com/a1/nextlocation/CouponFragmentTest.java b/app/src/androidTest/java/com/a1/nextlocation/CouponFragmentTest.java index 49b7ee5..d0aeb9a 100644 --- a/app/src/androidTest/java/com/a1/nextlocation/CouponFragmentTest.java +++ b/app/src/androidTest/java/com/a1/nextlocation/CouponFragmentTest.java @@ -41,8 +41,8 @@ public class CouponFragmentTest { //the button "Klaar" is shown then the test works mActivityTestRule.getActivity().getSupportFragmentManager().beginTransaction().replace(R.id.mainActivity, new CouponFragment()).commit(); onView(withId(R.id.coupon_recyclerview)).perform(RecyclerViewActions.actionOnItemAtPosition(1, click())); - onView(withText("activeren")).inRoot(RootMatchers.isDialog()).perform(click()); - onView(withText("Klaar")).inRoot(RootMatchers.isDialog()).check(matches(isDisplayed())); + onView(withId(R.string.activate)).inRoot(RootMatchers.isDialog()).perform(click()); + onView(withId(R.string.done)).inRoot(RootMatchers.isDialog()).check(matches(isDisplayed())); }