From d3e0f153045bc8bbc25dee4b04e578a6f0d9852d Mon Sep 17 00:00:00 2001 From: DanzaSeah Date: Tue, 12 Nov 2024 13:03:07 +0800 Subject: [PATCH] Standardise Tag MGT --- docs/DeveloperGuide.md | 66 ++++++++++++++++++++++-------------------- 1 file changed, 35 insertions(+), 31 deletions(-) diff --git a/docs/DeveloperGuide.md b/docs/DeveloperGuide.md index 786c03666b3..d3cd012e7c7 100644 --- a/docs/DeveloperGuide.md +++ b/docs/DeveloperGuide.md @@ -1779,50 +1779,54 @@ applied to edited data, but specific expected results will differ.

Tag Features

#### Creating Tag -##### ... if `Tag1` is not in the list of tags -1. Test case: `create-tag w/Tag1`
- Expected: `Tag1` is added to list of tags. Details of the added tag are shown. +1. **Creating a tag when `Tag 1` is not in the list of `Tags`.** + 1. **Test case**: `create-tag w/Tag1`
+ **Expected**: `Tag1` is added to list of `Tags`. Details of the added tag are shown. -##### ... if `Tag1` is in the list of tags -1. Test case: `create-tag w/Tag1`
- Expected: No tags are added to list of tags. Error details shown. +2. **Creating a tag when `Tag 1` is in the list of `Tags`.** + 1. **Test case**: `create-tag w/Tag1`
+ **Expected**: No tags are added to list of `Tags`. Error details shown. -1. Test case: `create-tag w/tag1`
- Expected: No tags are added to list of tags. Error details shown. + 2. **Test case**: `create-tag w/tag1`
+ **Expected**: No tags are added to list of `Tags`. Error details shown. #### Deleting Tag -##### ... if `Tag1` is in the list of tags -1. Test case: `delete-tag w/Tag1`
- Expected: `Tag1` is removed from list of tags. Details of the removed tag are shown. +1. **Deleting a tag when `Tag 1` is in the list of `Tags`.** + 1. **Test case**: `delete-tag w/Tag1`
+ **Expected**: `Tag1` is removed from list of `Tags`. Details of the removed tag are shown. -##### ... if `Tag1` is not in the list of tags -1. Test case: `delete-tag w/Tag1`
- Expected: No tags are removed from list of tags. Error details shown. +2. **Deleting a tag when `Tag 1` is not in the list of `Tags`.** + 1. **Test case**: `delete-tag w/Tag1`
+ **Expected**: No tags are removed from list of `Tags`. Error details shown. #### Tagging contact -##### ... if `Tag1` is in the list and if the first contact is not tagged with `Tag1` -1. Test case: `tag 1 t/Tag1`
- Expected: 1st contact is tagged with `Tag1`. Details of the updated contact are shown. +1. **Tagging the first contact when `Tag 1` is in the list of `Tags` and the first contact is not tagged with `Tag1`.** + 1. **Test case**: `tag 1 t/Tag1`
+ **Expected**: 1st contact is tagged with `Tag1`. Details of the updated contact are shown. -##### ... if `Tag1` is in the list and if the first contact is already tagged with `Tag1` -1. Test case: `tag 1 t/Tag1`
- Expected: No contacts are tagged. Error details shown. +2. **Tagging the first contact when `Tag 1` is in the list of `Tags` and the first contact is already tagged with `Tag1`.** + 1. **Test case**: `tag 1 t/Tag1`
+ **Expected**: No contacts are tagged. Error details shown. -##### ... if `Tag1` is not in the list -1. Test case: `tag 1 t/Tag1`
- Expected: No contact is tagged. Error details shown. +3. **Tagging the first contact when `Tag1` is in the list of `Tags` and the first contact is already tagged with `Tag1`.** + 1. **Test case**: `tag 1 t/Tag1`
+ **Expected**: No contacts are tagged. Error details shown. + +4. **Tagging the first contact when `Tag1` is not in the list of `Tags`.** + 1. **Test case**: `tag 1 t/Tag1`
+ **Expected**: No contact is tagged. Error details shown. -1. Test case: `tag 1 t/Tag1 f/`
- Expected: 1st contact is tagged with newly created `Tag1`. Details of the updated contact are shown. + 2. **Test case**: `tag 1 t/Tag1 f/`
+ **Expected**: 1st contact is tagged with newly created `Tag1`. Details of the updated contact are shown. #### Untagging contact -##### ... if first contact is tagged with `Tag1` -1. Test case: `untag 1 w/Tag1`
- Expected: `Tag1` is removed from their contact card. +1. **Untagging the first contact when the first contact is tagged with `Tag1`.** + 1. **Test case**: `untag 1 w/Tag1`
+ **Expected**: `Tag1` is removed from their contact card. -##### ... if first contact is not tagged with `Tag1` -1. Test case: `untag 1 w/Tag1`
- Expected: No contacts are untagged. Error details shown. +2. **Untagging the first contact when the first contact is not tagged with `Tag1`.** + 1. **Test case**: `untag 1 w/Tag1`
+ **Expected**: No contacts are untagged. Error details shown. ---