Android/Espresso Test: diferència entre les revisions

Contingut suprimit Contingut afegit
mCap resum de modificació
Línia 150:
onView(withId(R.id.model)).check(matches(withText("Tipus de cotxe: amb boto")));
onView(withId(R.id.text)).check(matches(withText("Apa som-hi!!")));
onView(withId(R.id.arranc)).check(matches(withResourceName("R.id.boto")));
 
onView(withId(R.id.arrenca)).perform(click());
onView(withId(R.id.model)).check(matches(withText("Tipus de cotxe: amb clau")));
onView(withId(R.id.text)).check(matches(withText("Apa som-hi!!")));
onView(withId(R.id.arranc)).check(matches(withResourceName("R.id.clau")));
 
onView(withId(R.id.arrenca)).perform(click());
onView(withId(R.id.model)).check(matches(withText("Tipus de cotxe: amb boto")));
onView(withId(R.id.text)).check(matches(withText("Apa som-hi!!")));
onView(withId(R.id.arranc)).check(matches(withResourceName("R.id.boto")));
 
onView(withId(R.id.clean)).perform(click());