I want to verify that a string retrieved from a DB entry is not present anymore after the entry in DB changed, I am using following statement for this:
onView(allOf(withText("oldname"), withId(R.id.title))).check(doesNotExist());
According to the espresso documentation and other posts I saw this should work, but I am getting following error:
android.support.test.espresso.NoMatchingViewException: No views in hierarchy found matching: (with text: is "oldname" and with id: com.myco.myapp:id/apkName)