Skip to content

Commit

Permalink
Fix flaky QuestionnaireUiEspressoTest (PR #2489 fixes #2485)
Browse files Browse the repository at this point in the history
Click AM to solve the flaky test.
  • Loading branch information
MJ1998 committed Mar 18, 2024
1 parent 4742e60 commit cbefcbf
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -246,12 +246,14 @@ class QuestionnaireUiEspressoTest {
.perform(ViewActions.typeTextIntoFocusedView("01052005"))

onView(withId(R.id.time_input_layout)).perform(clickIcon(true))
clickOnText("AM")
clickOnText("6")
clickOnText("10")
clickOnText("OK")

runTest {
val answer = getQuestionnaireResponse().item.first().answer.first().valueDateTimeType
// check Locale
assertThat(answer.localDateTime).isEqualTo(LocalDateTime.of(2005, 1, 5, 6, 10))
}
}
Expand Down

0 comments on commit cbefcbf

Please sign in to comment.