Skip to content

Commit

Permalink
fix: [ANDROAPP-6315] fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
xavimolloy committed Jul 12, 2024
1 parent 101a409 commit 79e4a07
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ class SearchTETest : BaseTest() {
openNextSearchParameter("Last name")
typeOnNextSearchTextParameter(teiLastName)
clickOnSearch()
clickOnTEI(teiLastName, composeTestRule)
clickOnTEI(teiName, composeTestRule)
}

teiDashboardRobot(composeTestRule) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

Expand Down

0 comments on commit 79e4a07

Please sign in to comment.