From fed68b59526eeeb09498f3d7e733eca0b5aad072 Mon Sep 17 00:00:00 2001 From: Grzegorz Orczykowski Date: Fri, 9 Aug 2024 18:31:31 +0200 Subject: [PATCH 1/7] Added a failing test --- .../feature/formentry/RequiredQuestionTest.java | 9 +++++++++ .../src/main/resources/forms/requiredJR275.xml | 13 +++++++++++++ 2 files changed, 22 insertions(+) diff --git a/collect_app/src/androidTest/java/org/odk/collect/android/feature/formentry/RequiredQuestionTest.java b/collect_app/src/androidTest/java/org/odk/collect/android/feature/formentry/RequiredQuestionTest.java index ebcbb49d7cd..da690b1ddfe 100644 --- a/collect_app/src/androidTest/java/org/odk/collect/android/feature/formentry/RequiredQuestionTest.java +++ b/collect_app/src/androidTest/java/org/odk/collect/android/feature/formentry/RequiredQuestionTest.java @@ -124,4 +124,13 @@ public void savingFormWithInvalidQuestion_shouldNotChangeTheCurrentQuestionIndex .clickSave() .swipeToNextQuestion("What is your age?"); } + + @Test // https://github.com/getodk/collect/issues/6327 + public void requiredQuestionsWithAudio_ShouldDisplayAsterisk() { + rule.startAtMainMenu() + .copyForm("requiredJR275.xml") + .startBlankForm("required") + .answerQuestion("* Foo", "blah") + .swipeToNextQuestion("* Text with audio"); + } } diff --git a/test-forms/src/main/resources/forms/requiredJR275.xml b/test-forms/src/main/resources/forms/requiredJR275.xml index 49acd8c24e4..2f3e5d452ce 100644 --- a/test-forms/src/main/resources/forms/requiredJR275.xml +++ b/test-forms/src/main/resources/forms/requiredJR275.xml @@ -3,9 +3,18 @@ required + + + + Text with audio + jr://audio/blah.mp3 + + + + @@ -13,6 +22,7 @@ + @@ -21,5 +31,8 @@ + +