From cec3dcd4117adf9a2655c2faad31c1b72813a56f Mon Sep 17 00:00:00 2001 From: Callum Stott Date: Tue, 2 Apr 2024 16:41:08 +0100 Subject: [PATCH] Wait for form page --- .../org/odk/collect/android/support/pages/FormEntryPage.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/collect_app/src/androidTest/java/org/odk/collect/android/support/pages/FormEntryPage.java b/collect_app/src/androidTest/java/org/odk/collect/android/support/pages/FormEntryPage.java index 859ad164b36..a798ef39d9c 100644 --- a/collect_app/src/androidTest/java/org/odk/collect/android/support/pages/FormEntryPage.java +++ b/collect_app/src/androidTest/java/org/odk/collect/android/support/pages/FormEntryPage.java @@ -45,7 +45,10 @@ public FormEntryPage assertOnPage() { return null; }); - assertToolbarTitle(formName); + WaitFor.waitFor((Callable) () -> { + assertToolbarTitle(formName); + return null; + }); // Check we are not on the Form Hierarchy page assertTextDoesNotExist(org.odk.collect.strings.R.string.jump_to_beginning);