diff options
-rw-r--r-- | app/src/androidTest/java/org/connectbot/StartupTest.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/src/androidTest/java/org/connectbot/StartupTest.java b/app/src/androidTest/java/org/connectbot/StartupTest.java index 8025517..a60d00e 100644 --- a/app/src/androidTest/java/org/connectbot/StartupTest.java +++ b/app/src/androidTest/java/org/connectbot/StartupTest.java @@ -34,6 +34,7 @@ import static android.support.test.espresso.action.ViewActions.pressBack; import static android.support.test.espresso.action.ViewActions.pressImeActionButton; import static android.support.test.espresso.action.ViewActions.pressMenuKey; import static android.support.test.espresso.action.ViewActions.typeText; +import static android.support.test.espresso.assertion.ViewAssertions.doesNotExist; import static android.support.test.espresso.assertion.ViewAssertions.matches; import static android.support.test.espresso.intent.Intents.intended; import static android.support.test.espresso.intent.matcher.IntentMatchers.hasComponent; @@ -97,6 +98,15 @@ public class StartupTest { } @Test + public void localConnectionCanDelete() { + startNewLocalConnectionAndGoBack("Local"); + onData(withHostNickname("Local")).inAdapterView(withId(android.R.id.list)) + .perform(longClick()); + onView(withText(R.string.list_host_delete)).perform(click()); + onView(withText(R.string.delete_pos)).perform(click()); + } + + @Test public void localConnectionCanChangeToRed() throws Exception { startNewLocalConnectionAndGoBack("Local1"); changeColor("Local1", R.color.red, R.string.color_red); |