Skip to content

Commit

Permalink
fix: [ANDROAPP-6315] fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xavimolloy committed Jul 11, 2024
1 parent 9444dfc commit 50564fa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class ProgramEventsRobot(val composeTestRule: ComposeContentTestRule) : BaseRobo

@OptIn(ExperimentalTestApi::class)
fun checkEventIsComplete(eventDate: String) {
composeTestRule.waitUntilAtLeastOneExists(hasText("Event completed"))
composeTestRule.waitUntilAtLeastOneExists(hasText("Event completed"), 2500)
composeTestRule.onNodeWithText(eventDate).assertIsDisplayed()
composeTestRule.onNodeWithText("Event completed").assertIsDisplayed()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ class SearchTeiRobot(val composeTestRule: ComposeTestRule) : BaseRobot() {
val title = "First name: ${displayListFieldsUIModel.name}"
val displayedAttributes = createAttributesList(displayListFieldsUIModel)
//When we expand all attribute list
composeTestRule.onNodeWithText("Show more").performClick()
composeTestRule.onNodeWithText("Show more", true).performClick()
composeTestRule.waitForIdle()
//Then The title and all attributes are displayed
composeTestRule.onNodeWithText(title).assertIsDisplayed()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ class TeiDashboardTest : BaseTest() {
}

enrollmentRobot(composeTestRule) {
composeTestRule.waitForIdle()
clickOnAProgramForEnrollment(composeTestRule, womanProgram)
clickOnAcceptInDatePicker()
openFormSection(personAttribute)
Expand Down

0 comments on commit 50564fa

Please sign in to comment.