From d034da8d01f67cfd0869a73795f0e1fc5ac4f2ca Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sat, 23 May 2020 16:00:03 +0530 Subject: [PATCH] Fix tests for #778 And this is why you rebase your PRs before merging :^) Signed-off-by: Harsh Shandilya --- .../com/zeapo/pwdstore/git/GitServerConfigActivityTest.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/androidTest/java/com/zeapo/pwdstore/git/GitServerConfigActivityTest.kt b/app/src/androidTest/java/com/zeapo/pwdstore/git/GitServerConfigActivityTest.kt index 8bfd759c..143cfe1b 100644 --- a/app/src/androidTest/java/com/zeapo/pwdstore/git/GitServerConfigActivityTest.kt +++ b/app/src/androidTest/java/com/zeapo/pwdstore/git/GitServerConfigActivityTest.kt @@ -6,7 +6,6 @@ package com.zeapo.pwdstore.git import android.view.View -import android.widget.RadioGroup import androidx.test.espresso.Espresso.onView import androidx.test.espresso.UiController import androidx.test.espresso.ViewAction @@ -103,7 +102,7 @@ class GitServerConfigActivityTest { onView(withId(R.id.clone_protocol_group)).perform(callMethod { it.check(R.id.clone_protocol_https) }) - onView(withId(R.id.connection_mode_group)).perform(callMethod { + onView(withId(R.id.connection_mode_group)).perform(callMethod { it.check(R.id.connection_mode_password) }) onView(withId(R.id.server_path)).perform(replaceText("john_doe/my_secret_repository")) @@ -116,7 +115,7 @@ class GitServerConfigActivityTest { onView(withId(R.id.clone_protocol_group)).perform(callMethod { it.check(R.id.clone_protocol_ssh) }) - onView(withId(R.id.connection_mode_group)).perform(callMethod { + onView(withId(R.id.connection_mode_group)).perform(callMethod { it.check(R.id.connection_mode_ssh_key) }) onView(withId(R.id.server_path)).perform(replaceText("john_doe/my_secret_repository"))