Skip to content

Commit

Permalink
fix: [ANDROAPP-6131] fix android test
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo <[email protected]>
  • Loading branch information
Balcan committed Jun 13, 2024
1 parent ea3f95b commit 3508924
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions app/src/androidTest/java/org/dhis2/usescases/event/EventTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ class EventTest : BaseTest() {
val atenatalCare = "lxAQ7Zs9VYR"

prepareProgramAndLaunchActivity(atenatalCare)
disableRecyclerViewAnimations()

programEventsRobot(composeTestRule) {
clickOnAddEvent()
Expand Down Expand Up @@ -175,14 +174,4 @@ class EventTest : BaseTest() {
putExtra(ProgramEventDetailActivity.EXTRA_PROGRAM_UID, programUid)
}.also { eventListRule.launch(it) }
}

private fun disableRecyclerViewAnimations() {
eventListRule.getScenario().onActivity {
it.runOnUiThread {
it.supportFragmentManager.findFragmentByTag("EVENT_LIST").apply {
(this as EventListFragment).binding.recycler.itemAnimator = null
}
}
}
}
}

0 comments on commit 3508924

Please sign in to comment.