diff --git a/app/src/androidTest/java/org/dhis2/usescases/searchte/SearchTETest.kt b/app/src/androidTest/java/org/dhis2/usescases/searchte/SearchTETest.kt index 753fe13556..4216f6bfd5 100644 --- a/app/src/androidTest/java/org/dhis2/usescases/searchte/SearchTETest.kt +++ b/app/src/androidTest/java/org/dhis2/usescases/searchte/SearchTETest.kt @@ -341,7 +341,7 @@ class SearchTETest : BaseTest() { openNextSearchParameter("Last name") typeOnNextSearchTextParameter(teiLastName) clickOnSearch() - clickOnTEI(teiLastName, composeTestRule) + clickOnTEI(teiName, composeTestRule) } teiDashboardRobot(composeTestRule) { diff --git a/app/src/androidTest/java/org/dhis2/usescases/searchte/robot/SearchTeiRobot.kt b/app/src/androidTest/java/org/dhis2/usescases/searchte/robot/SearchTeiRobot.kt index debeab18c7..230a03aa87 100644 --- a/app/src/androidTest/java/org/dhis2/usescases/searchte/robot/SearchTeiRobot.kt +++ b/app/src/androidTest/java/org/dhis2/usescases/searchte/robot/SearchTeiRobot.kt @@ -44,9 +44,9 @@ fun searchTeiRobot( class SearchTeiRobot(val composeTestRule: ComposeTestRule) : BaseRobot() { - fun clickOnTEI( teiLastName: String,composeTestRule: ComposeTestRule) { + fun clickOnTEI( teiName: String,composeTestRule: ComposeTestRule) { composeTestRule.waitForIdle() - composeTestRule.onNodeWithText("Last name: $teiLastName", true).performClick() + composeTestRule.onNodeWithText("First name: $teiName", true).performClick() composeTestRule.waitForIdle() }