1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-23 18:02:15 -05:00

log ChangeLog click failure

This commit is contained in:
Jan Berkel 2015-01-13 16:12:39 +01:00
parent a15583a080
commit 055d4104b7

View File

@ -1,8 +1,10 @@
package com.fsck.k9.endtoend.pages;
import com.fsck.k9.K9;
import com.fsck.k9.R;
import android.support.test.espresso.NoMatchingViewException;
import android.support.test.espresso.matcher.ViewMatchers;
import android.util.Log;
import static android.support.test.espresso.Espresso.onView;
import static android.support.test.espresso.action.ViewActions.clearText;
@ -41,6 +43,7 @@ public class AccountSetupNamesPage extends AbstractPage {
try {
onView(ViewMatchers.withText("OK")).perform(click());
} catch (NoMatchingViewException ex) {
Log.w(K9.LOG_TAG, "did not find Changelog OK button - ignored");
// Ignored. Not the best way of doing this, but Espresso rightly makes
// conditional flow difficult.
}