From ff93527f45bd786e6afc34659eccbfdae6f0b0c1 Mon Sep 17 00:00:00 2001 From: naomi Date: Fri, 10 Sep 2021 12:10:05 +0200 Subject: [PATCH 1/5] Update 'manual_tests.md' --- manual_tests.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manual_tests.md b/manual_tests.md index 0a49115..6ee2af4 100644 --- a/manual_tests.md +++ b/manual_tests.md @@ -15,7 +15,7 @@ # Editing a client using the GUI ## 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. +* 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 ## Tests for presave hook in goodnightout_opencase.module From 9b6bd44fea7aa8d755c56892544934d1655d4c01 Mon Sep 17 00:00:00 2001 From: naomi Date: Fri, 10 Sep 2021 12:11:32 +0200 Subject: [PATCH 2/5] Update 'manual_tests.md' --- manual_tests.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manual_tests.md b/manual_tests.md index 6ee2af4..fe4144e 100644 --- a/manual_tests.md +++ b/manual_tests.md @@ -20,7 +20,7 @@ # Automatic client status ## Tests for presave hook in goodnightout_opencase.module -* Setup a client with status "Lead" and give it multiple trainings +* 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" From 63936e4451172c1e0106a13f724e28729e529b3a Mon Sep 17 00:00:00 2001 From: naomi Date: Fri, 10 Sep 2021 12:22:24 +0200 Subject: [PATCH 3/5] Update 'manual_tests.md' --- manual_tests.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/manual_tests.md b/manual_tests.md index fe4144e..43fb6eb 100644 --- a/manual_tests.md +++ b/manual_tests.md @@ -12,6 +12,13 @@ * If you change the client type, the options in the subtype dropdown should populate accordingly (e.g. "Licensed Premises" -> a list including "Pub or Bar", or "Nightlife Organisation" -> a list including "Festival" and "Staffing Agency") * The "-None-" option should always remain present in the subtypes dropdown. +# Linked clients +* Client screen should have a button to add a linked client +* When you click it it should take you to a screen saying "Add linked client" with an autocomplete box +* Add One +* You should then see the linked client in the list on the original client's screen +* Clink on the linked client's name in the list and you should see that the original client is in the list of linked clients for it (i.e. it is a summetrical relation) + # Editing a client using the GUI ## 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" From cac99d3acea9f5bebcd6f4ffdf1acee102cf3942 Mon Sep 17 00:00:00 2001 From: naomi Date: Fri, 10 Sep 2021 12:23:49 +0200 Subject: [PATCH 4/5] Update 'manual_tests.md' --- manual_tests.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manual_tests.md b/manual_tests.md index 43fb6eb..434b797 100644 --- a/manual_tests.md +++ b/manual_tests.md @@ -17,7 +17,8 @@ * When you click it it should take you to a screen saying "Add linked client" with an autocomplete box * Add One * You should then see the linked client in the list on the original client's screen -* Clink on the linked client's name in the list and you should see that the original client is in the list of linked clients for it (i.e. it is a summetrical relation) +* Clink on the linked client's name in the list and you should see that the original client is in the list of linked clients for it (i.e. it is a symmetrical relation) +* The delete link in the list should work, i.e. remove the linked client from the list # Editing a client using the GUI ## Tests for JS code in js/edit_client.js From 81233b5b9b287e9e5e49a40da874c696ae0e7a31 Mon Sep 17 00:00:00 2001 From: naomi Date: Fri, 10 Sep 2021 12:37:04 +0200 Subject: [PATCH 5/5] Update 'manual_tests.md' --- manual_tests.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/manual_tests.md b/manual_tests.md index 434b797..bdeac55 100644 --- a/manual_tests.md +++ b/manual_tests.md @@ -34,6 +34,17 @@ * 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" +# Trainings linked to projects or clients + +* Add a training from a client screen +* It should have the client filled in by default, and a box for the project +* Fill in a project and save +* On the training screen there should be a link to the project +* Click it to open the project, then add another training +* The project field should default to the project and there should be a box for the client +* Add a client and save +* There should be a link to the client on the project screen +* Click it and the project should be listed there # Email notification ## Tests for mail hook and post-save hook in goodnightout_opencase.module