Update 'manual_tests.md'

This commit is contained in:
naomi 2021-09-09 18:35:29 +02:00
parent c588bb13a0
commit ed4ad819dc
1 changed files with 12 additions and 0 deletions

View File

@ -16,3 +16,15 @@
## Tests for JS code in js/edit_client.js
* The subtypes dropdown should be populated according to the existing value of the types dropdown. E.g. save a client as "licensed premises" type and reopen; the subtypes should be a list including "Pub or Bar"
* The status dropdown should be populated according to the existing value of the substatuses dropdown. E.g. save a client as substatus "One-off Training" and reopen; the status should be set to "Confirmed" and it should not be possible to change it.
# Automatic client status
## Tests for presave hook in goodnightout_opencase.module
* Setup a client with status "Lead" and give it multiple trainings
* Set some but not all of the trainings to status "post training materials sent"
* The status of the client should not change
* Set all the remaining trainings to status "post training materials sent"
* This should automatically set the client status to "Accredited" and their substatus to "Recently Accredited"