Update 'docs/manual_tests.md'

This commit is contained in:
naomi 2021-09-13 12:48:38 +02:00
parent b3b0eb2e6c
commit afa5e7e37d

View File

@ -63,24 +63,6 @@
* 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 that should be the only option in the status dropdown.
# Automatic client status & accreditation date
## Tests for presave hook in goodnightout_opencase.module
* Setup a client with status "Lead" and give it multiple trainings - leave the training status as N/A.
* 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", their substatus to "Recently Accredited", and their Accreditation Date to today.
## Tests for cron hook in goodnightout_opencase.module
* Change the accreditation date to one that's more than 3 months in the past
* Run cron
* The status should change to 3-month follow-up due and an email alert should be sen
* Change the status to "3-month follow-up sent" and change the accreditation date to one that's more than 6 months in the past
* Run cron
* The status should change to 6-month follow-up due and an email alert should be sent
# Trainings linked to projects or clients
* Add a training from a client screen
@ -101,6 +83,24 @@
* Should not happen when client is saved without changing status
* Should not happen when status is changed to something else
# Automatic client status & accreditation date
## Tests for presave hook in goodnightout_opencase.module
* Setup a client with status "Lead" and give it multiple trainings - leave the training status as N/A.
* 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", their substatus to "Recently Accredited", and their Accreditation Date to today.
## Tests for cron hook in goodnightout_opencase.module
* Change the accreditation date to one that's more than 3 months in the past
* Run cron
* The status should change to 3-month follow-up due and an email alert should be sen
* Change the status to "3-month follow-up sent" and change the accreditation date to one that's more than 6 months in the past
* Run cron
* The status should change to 6-month follow-up due and an email alert should be sent
# Number of participants
* Create a debrief for a training and fill in "Number of participants".