-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom Repeat Captions Support #1615
Conversation
@@ -44,7 +44,7 @@ public void testRepeatNonCountedSimple() throws Exception { | |||
assert (tree.length == 2); | |||
QuestionBean dummyNode = tree[1]; | |||
assertEquals("false", dummyNode.getExists()); | |||
assertEquals("Add a new question3", dummyNode.getAddChoice()); | |||
assertEquals("Add Empty Caption Label", dummyNode.getAddChoice()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's worth adding back a test that checks the default text is correct
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added in 3c381eb
@@ -131,20 +132,8 @@ public static JSONObject parseQuestionType(FormEntryModel model, JSONObject obj) | |||
} | |||
|
|||
private static String getRepeatAddText(FormEntryCaption prompt) { | |||
String promptText = prompt.getLongText(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice simplification
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1615 +/- ##
============================================
- Coverage 70.34% 70.15% -0.19%
+ Complexity 2065 1997 -68
============================================
Files 255 254 -1
Lines 7968 7878 -90
Branches 740 739 -1
============================================
- Hits 5605 5527 -78
+ Misses 2078 2069 -9
+ Partials 285 282 -3 ☔ View full report in Codecov by Sentry. |
Product Description
https://dimagi.atlassian.net/browse/USH-4710
Adds ability to specify custom captions for repeat groups.
Spec
Safety Assurance
Safety story
Automated test coverage
We have test coverage to check for add captions that this PR changes in accordance to new behaviour.
QA Plan
Not planning
cross-request: dimagi/commcare-core#1428