Espresso check if no dialog is displayed
问题 I have a method that checks several conditions, and calls another activity when they are satisfied. When a condition isn't satisfied, it should display an error dialog (which is currently using a DialogFragment to display an alert dialog). The method looks something like this: void checkAndCall() { CustomObject o1 = null; try { o1 = CustomObject.parse(editText1.getText().toString()); } catch (CustomException e) { handleBadCase(e); return; } CustomObject o2 = null; try { o2 = CustomObject