-
Notifications
You must be signed in to change notification settings - Fork 3
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
Harness@5 attempting to fill some invisible questions #271
Comments
Just a quick follow up here to note that I am digging into the error message:
I have successfully reproduced this running live on a CHT instance, so this is not endemic to cht-form or the test-harness. While the error does not seem to prevent the form from being submitted with the necessary data, I think it is noticeable to the user. I am pretty sure that it is causing read-only text boxes to apprear on the summary page: I am still running down the exact cause of the issue (will report back when I have more info), but it seems likely to me that it is an Enketo bug (enketo/enketo#99 resulted in a similar error in the logs). |
Okay, I have been able to track this See that issue for more details, but TLDR is that there seems to be issues handling |
Thanks for chasing down the issue @jkuester ! Is this an issue we can fix in CHT Core with a patch to our enketo then? Another way of asking this is: what workarounds, if any, are there? Is it just "avoid this combo in your form" kinda thing? |
So, on the enketo ticket I noted a workaround that seemed viable for the basic repro case (just making the repeat group non-relevant when it is empty), but I was never able to get the to work with the If it turns out to be a simple fix in Enketo, we can definitely patch it in cht-core while we wait on a new version of Enekto. However, I have not determined how this can/should be fixed in enketo-core at this point. More investigation is needed. @kennsippell (et al) I have logged medic/cht-core#9684 to track this on the CHT side. It would be useful to have folks weigh in out on that issue regarding the priority/impact of this issue. Thanks! |
Thanks a bunch @jkuester ! |
Describe the bug
To Reproduce
moh-kenya/config-echis-2.0@12981-noverify-when-chp
TZ=Africa/Nairobi npx mocha --reporter spec --timeout 120000 --slow 5000 ./test/tasks/postnatal_care_service.spec.js
Scenario leads to:
questions have new classes like
contains-ref-target pre-init and contains-ref-target
which form-filler thinks are visibleconsole errors
I'm working on a minimal repro
Environment:
The text was updated successfully, but these errors were encountered: