From ed4ad819dcf30c21c05d60677789a23d9959120f Mon Sep 17 00:00:00 2001 From: naomi Date: Thu, 9 Sep 2021 18:35:29 +0200 Subject: [PATCH] Update 'manual_tests.md' --- manual_tests.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/manual_tests.md b/manual_tests.md index 0ee4694..57bb39c 100644 --- a/manual_tests.md +++ b/manual_tests.md @@ -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" + + +