Skip to content

Commit

Permalink
Removed test case and made edits
Browse files Browse the repository at this point in the history
  • Loading branch information
kanahia1 committed Nov 12, 2023
1 parent 928177e commit dbbdbd5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import android.widget.FrameLayout
import android.widget.TextView
import androidx.test.espresso.Espresso.onData
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.action.ViewActions
import androidx.test.espresso.action.ViewActions.click
import androidx.test.espresso.action.ViewActions.typeText
import androidx.test.espresso.assertion.ViewAssertions.matches
Expand Down Expand Up @@ -130,24 +129,6 @@ class DropDownViewHolderFactoryEspressoTest {
assertThat((answerHolder!!.single().value as Coding).display).isEqualTo("Coding 3")
}

@Test
fun testAutoCompleteNotYesNoOrDash() {
try {
onView(withId(R.id.auto_complete))
.perform(click())
.perform(typeText("Coding"))
.perform(ViewActions.pressImeActionButton())
} catch (e: androidx.test.espresso.PerformException) {
if (e.message?.contains("Error performing 'type text(Coding)' on view") == true) {
return
}
throw e
}

assertThat(viewHolder.itemView.findViewById<TextView>(R.id.auto_complete).text.toString())
.isNotEqualTo("Coding")
}

@Test
fun shouldClearAutoCompleteTextViewOnRebindingView() {
var answerHolder: List<QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent>? = null
Expand Down
2 changes: 0 additions & 2 deletions datacapture/src/main/res/layout/drop_down_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:editable="false"
android:focusable="false"
android:focusableInTouchMode="false"
/>

</com.google.android.material.textfield.TextInputLayout>
Expand Down

0 comments on commit dbbdbd5

Please sign in to comment.