Skip to content

Commit

Permalink
12
Browse files Browse the repository at this point in the history
  • Loading branch information
jackkray committed Oct 25, 2024
1 parent a3fb808 commit 5afafde
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import androidx.test.espresso.action.ViewActions.click
import androidx.test.espresso.action.ViewActions.replaceText
import androidx.test.espresso.matcher.ViewMatchers.withHint
import androidx.test.espresso.matcher.ViewMatchers.withId
import androidx.test.espresso.matcher.ViewMatchers.withText
import androidx.test.uiautomator.UiObject
import androidx.test.uiautomator.UiScrollable
import androidx.test.uiautomator.UiSelector
Expand Down Expand Up @@ -35,7 +36,7 @@ class ExtractionScreen {

fun checkTransferSummaryButtonIsClickable(): Boolean {
var isTransferSummaryButtonClickable = false
onView(withId(R.id.transfer_summary)).check { view, noViewFoundException ->
onView(withText("Send Feedback and Close")).check { view, noViewFoundException ->
if (noViewFoundException == null || view.isClickable()) {
isTransferSummaryButtonClickable = true
}
Expand Down

0 comments on commit 5afafde

Please sign in to comment.