One checks the activities declaration tab, if any input is filled and the declaration date isn't selected it prevents the form to be submitted
The other check the party select, if 'Councillor' is selected on the job select then any party must be selected
How
Add custom validations for the abide plugin
Screenshots
Activity declaration validation
Main validation
Test
Added test to cover all the new features and changes, but there are some problems with foundation abide plugin. When the abide plugin its enabled on each form header (on edit and new) capybara fails to submit the form; it becomes empy and the validations prevents the form to be submitted and the test fails (I'm still working on it but the written test are those that should work in the final version)
Deployment
No
Warnings
:warning: This PR shouldn't be merged, its only the four one of five and each one will be built form the previous one. It's intended to split and clarify the total solution for the issue wich is pretty big and complicated to be in a single PR :warning:
Coverage increased (+0.6%) to 92.005% when pulling 9cb7c0b2070baeb83c779f9b85320db3c4b9aea3 on wairbut-m2c:add_more_validations_to_the_person_form into 1e0ffeb30d1bb8db07b2daa6278927e91bda9c72 on AyuntamientoMadrid:master.
Where
What
How
Screenshots
Activity declaration validation
Main validation
Test
Deployment
Warnings