From 33f1dddce27ebcecfd6496e9553f60660122a7a8 Mon Sep 17 00:00:00 2001 From: naomi Date: Wed, 8 Sep 2021 18:21:05 +0200 Subject: [PATCH 1/2] Add 'manual_tests.md' --- manual_tests.md | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 manual_tests.md diff --git a/manual_tests.md b/manual_tests.md new file mode 100644 index 0000000..4f196a0 --- /dev/null +++ b/manual_tests.md @@ -0,0 +1,10 @@ +# Adding new client using the GUI + +## Tests for GUI settings +* When adding a new client in the GUI, the status should default to Lead and the substatus to New Lead. (Setting: default values for those fields.) +* Neither the status nor the substatus dropdown should not contain a placeholder option such as "None" or "Select". (Setting: Required field) + + +## Tests for JS code in js/edit_client.js +* If you change the substatus, the status should automatically change accordingly (e.g. "One-off Training" -> "Confirmed", or "3-month follow-up due" -> "Accredited"). +* You should not be able to change the status except by changing the substatus. \ No newline at end of file From 82695c63fa878c7075092b29d65a91403a914d29 Mon Sep 17 00:00:00 2001 From: naomi Date: Wed, 8 Sep 2021 19:31:25 +0200 Subject: [PATCH 2/2] Update 'manual_tests.md' --- manual_tests.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/manual_tests.md b/manual_tests.md index 4f196a0..0ee4694 100644 --- a/manual_tests.md +++ b/manual_tests.md @@ -7,4 +7,12 @@ ## Tests for JS code in js/edit_client.js * If you change the substatus, the status should automatically change accordingly (e.g. "One-off Training" -> "Confirmed", or "3-month follow-up due" -> "Accredited"). -* You should not be able to change the status except by changing the substatus. \ No newline at end of file +* You should not be able to change the status except by changing the substatus. +* Initially the client type should be "-None-" and the only thing in the subtypes dropdown should be "-None-" also. +* 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 "Student Union") +* The "-None-" option should always remain present in the subtypes dropdown. + +# 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.