From 45818e4228ed00e9a8909acc7acaa8f8b460b267 Mon Sep 17 00:00:00 2001 From: Xavier Molloy Date: Thu, 6 Jun 2024 09:01:37 +0200 Subject: [PATCH] fix: [ANDROAPP-6101] fix flaky test --- .../java/org/dhis2/usescases/event/EventRegistrationRobot.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/androidTest/java/org/dhis2/usescases/event/EventRegistrationRobot.kt b/app/src/androidTest/java/org/dhis2/usescases/event/EventRegistrationRobot.kt index c13f41c502..1bd0c7ccdb 100644 --- a/app/src/androidTest/java/org/dhis2/usescases/event/EventRegistrationRobot.kt +++ b/app/src/androidTest/java/org/dhis2/usescases/event/EventRegistrationRobot.kt @@ -40,7 +40,7 @@ class EventRegistrationRobot : BaseRobot() { } private fun clickOnNextQR() { - onView(withId(R.id.next)).perform(click()) + waitForView(withId(R.id.next)).perform(click()) } fun clickOnAllQR(listQR: Int) {