From 3d4cf6315e58e1d6e81ff6b41b78bd3163ce06c6 Mon Sep 17 00:00:00 2001 From: Aayush Chaudhary <116162036+AayushChaudhary0001@users.noreply.github.com> Date: Fri, 22 Sep 2023 14:03:47 +0530 Subject: [PATCH 1/2] [MI-3533]: Added test cases for extra check on API of TODO plugin (#3) * [MI-3533]: Added test cases for extra check on API of ToDO plugin * [MI-3533]: Review fixes * Review fix Co-authored-by: kshitij katiyar <90389917+Kshitij-Katiyar@users.noreply.github.com> --------- Co-authored-by: kshitij katiyar <90389917+Kshitij-Katiyar@users.noreply.github.com> --- .../plugins/todo/API/Accept_issue.md | 42 ++++++++++++++++++ data/test-cases/plugins/todo/API/Add_issue.md | 42 ++++++++++++++++++ .../test-cases/plugins/todo/API/Bump_issue.md | 42 ++++++++++++++++++ .../plugins/todo/API/Complete_issue.md | 42 ++++++++++++++++++ .../plugins/todo/API/Delete_issue.md | 42 ++++++++++++++++++ .../test-cases/plugins/todo/API/Edit issue.md | 43 +++++++++++++++++++ .../plugins/todo/API/Get_issue_list.md | 42 ++++++++++++++++++ 7 files changed, 295 insertions(+) create mode 100644 data/test-cases/plugins/todo/API/Accept_issue.md create mode 100644 data/test-cases/plugins/todo/API/Add_issue.md create mode 100644 data/test-cases/plugins/todo/API/Bump_issue.md create mode 100644 data/test-cases/plugins/todo/API/Complete_issue.md create mode 100644 data/test-cases/plugins/todo/API/Delete_issue.md create mode 100644 data/test-cases/plugins/todo/API/Edit issue.md create mode 100644 data/test-cases/plugins/todo/API/Get_issue_list.md diff --git a/data/test-cases/plugins/todo/API/Accept_issue.md b/data/test-cases/plugins/todo/API/Accept_issue.md new file mode 100644 index 000000000..b2cd7043a --- /dev/null +++ b/data/test-cases/plugins/todo/API/Accept_issue.md @@ -0,0 +1,42 @@ +# (Required) Ensure all values are filled up +name: "Accept Todo" +status: Active +priority: Normal +folder: ToDo +authors: "@AayushChaudhary0001" +team_ownership: +- Change Team Name +priority_p1_to_p4: P2 - Core Functions (Do core functions work?) + +# (Optional) +location: null +component: null +tags: [] +labels: [] +tested_by_contributor: null + +# (Optional) Test type and tools +cypress: null +detox: null +mmctl: null +playwright: null +rainforest: [] +manual_test_environments: [] + +# Do not change +id: null +key: null +created_on: null +last_updated: null +case_hashed: null +steps_hashed: null +--- + +**Step 1** + +1. Provide the authtoken(in postman) of the user to whom the Todo is assigned. +2. Provide the id(mandatory field) of the Todo from the list of the users to whom the ToDo is assigned. + +**Expected** + +The desired Todo should get accepted. \ No newline at end of file diff --git a/data/test-cases/plugins/todo/API/Add_issue.md b/data/test-cases/plugins/todo/API/Add_issue.md new file mode 100644 index 000000000..898bfe07c --- /dev/null +++ b/data/test-cases/plugins/todo/API/Add_issue.md @@ -0,0 +1,42 @@ +# (Required) Ensure all values are filled up +name: "Add Todo" +status: Active +priority: Normal +folder: ToDo +authors: "@AayushChaudhary0001" +team_ownership: +- Change Team Name +priority_p1_to_p4: P2 - Core Functions (Do core functions work?) + +# (Optional) +location: null +component: null +tags: [] +labels: [] +tested_by_contributor: null + +# (Optional) Test type and tools +cypress: null +detox: null +mmctl: null +playwright: null +rainforest: [] +manual_test_environments: [] + +# Do not change +id: null +key: null +created_on: null +last_updated: null +case_hashed: null +steps_hashed: null +--- + +**Step 1** + +1. Fill all the mandatory fields of the API body. +2. Provide the correct authtoken of the user(in postman). + +**Expected** + +The desired Todo should get created. \ No newline at end of file diff --git a/data/test-cases/plugins/todo/API/Bump_issue.md b/data/test-cases/plugins/todo/API/Bump_issue.md new file mode 100644 index 000000000..93904411e --- /dev/null +++ b/data/test-cases/plugins/todo/API/Bump_issue.md @@ -0,0 +1,42 @@ +# (Required) Ensure all values are filled up +name: "Bump Todo" +status: Active +priority: Normal +folder: ToDo +authors: "@AayushChaudhary0001" +team_ownership: +- Change Team Name +priority_p1_to_p4: P2 - Core Functions (Do core functions work?) + +# (Optional) +location: null +component: null +tags: [] +labels: [] +tested_by_contributor: null + +# (Optional) Test type and tools +cypress: null +detox: null +mmctl: null +playwright: null +rainforest: [] +manual_test_environments: [] + +# Do not change +id: null +key: null +created_on: null +last_updated: null +case_hashed: null +steps_hashed: null +--- + +**Step 1** + +1. Provide the authtoken(in postman) of the user to whom the Todo is assigned. +2. Provide the id(mandatory field) of the ToDo from the list of the user to whom the Todo is aasigned. + +**Expected** + +The desired Todo should get accepted. \ No newline at end of file diff --git a/data/test-cases/plugins/todo/API/Complete_issue.md b/data/test-cases/plugins/todo/API/Complete_issue.md new file mode 100644 index 000000000..d9e5b9004 --- /dev/null +++ b/data/test-cases/plugins/todo/API/Complete_issue.md @@ -0,0 +1,42 @@ +# (Required) Ensure all values are filled up +name: "Complete Todo" +status: Active +priority: Normal +folder: ToDo +authors: "@AayushChaudhary0001" +team_ownership: +- Change Team Name +priority_p1_to_p4: P2 - Core Functions (Do core functions work?) + +# (Optional) +location: null +component: null +tags: [] +labels: [] +tested_by_contributor: null + +# (Optional) Test type and tools +cypress: null +detox: null +mmctl: null +playwright: null +rainforest: [] +manual_test_environments: [] + +# Do not change +id: null +key: null +created_on: null +last_updated: null +case_hashed: null +steps_hashed: null +--- + +**Step 1** + +1. Provide the correct authtoken(in Postman) of the correct user. +2. Provide the correct id(mndatory field) of the Todo comment. + +**Expected** + +The ToDo comment should get completed and should not be visible in the Todo list afterwards. diff --git a/data/test-cases/plugins/todo/API/Delete_issue.md b/data/test-cases/plugins/todo/API/Delete_issue.md new file mode 100644 index 000000000..4340d383f --- /dev/null +++ b/data/test-cases/plugins/todo/API/Delete_issue.md @@ -0,0 +1,42 @@ +# (Required) Ensure all values are filled up +name: "Delete Todo" +status: Active +priority: Normal +folder: ToDo +authors: "@AayushChaudhary0001" +team_ownership: +- Change Team Name +priority_p1_to_p4: P2 - Core Functions (Do core functions work?) + +# (Optional) +location: null +component: null +tags: [] +labels: [] +tested_by_contributor: null + +# (Optional) Test type and tools +cypress: null +detox: null +mmctl: null +playwright: null +rainforest: [] +manual_test_environments: [] + +# Do not change +id: null +key: null +created_on: null +last_updated: null +case_hashed: null +steps_hashed: null +--- + +**Step 1** + +1. Provide the correct authtoken(in postman) of the user. +2. Fill the mandatory ID field correctly. + +**Expected** + +The desired ToDo should get deleted. \ No newline at end of file diff --git a/data/test-cases/plugins/todo/API/Edit issue.md b/data/test-cases/plugins/todo/API/Edit issue.md new file mode 100644 index 000000000..4dd892d3e --- /dev/null +++ b/data/test-cases/plugins/todo/API/Edit issue.md @@ -0,0 +1,43 @@ +# (Required) Ensure all values are filled up +name: "Edit Todo" +status: Active +priority: Normal +folder: ToDo +authors: "@AayushChaudhary0001" +team_ownership: +- Change Team Name +priority_p1_to_p4: P2 - Core Functions (Do core functions work?) + +# (Optional) +location: null +component: null +tags: [] +labels: [] +tested_by_contributor: null + +# (Optional) Test type and tools +cypress: null +detox: null +mmctl: null +playwright: null +rainforest: [] +manual_test_environments: [] + +# Do not change +id: null +key: null +created_on: null +last_updated: null +case_hashed: null +steps_hashed: null +--- + +**Step 1** + +1. Provide the id(mandatory field) of the desired Todo. +2. Enter the desired changes in message and description field(mandatory fields). +3. Provide the correct authtoken(in postman) of the user. + +**Expected** + +The desired Todo should get created. \ No newline at end of file diff --git a/data/test-cases/plugins/todo/API/Get_issue_list.md b/data/test-cases/plugins/todo/API/Get_issue_list.md new file mode 100644 index 000000000..54828ae7f --- /dev/null +++ b/data/test-cases/plugins/todo/API/Get_issue_list.md @@ -0,0 +1,42 @@ +# (Required) Ensure all values are filled up +name: "Get Todo list" +status: Active +priority: Normal +folder: ToDo +authors: "@AayushChaudhary0001" +team_ownership: +- Change Team Name +priority_p1_to_p4: P2 - Core Functions (Do core functions work?) + +# (Optional) +location: null +component: null +tags: [] +labels: [] +tested_by_contributor: null + +# (Optional) Test type and tools +cypress: null +detox: null +mmctl: null +playwright: null +rainforest: [] +manual_test_environments: [] + +# Do not change +id: null +key: null +created_on: null +last_updated: null +case_hashed: null +steps_hashed: null +--- + +**Step 1** + +1. Provide the correct authtoken(in postman) of the user. +2. Select the params for the Todo list(in/out). + +**Expected** + +The Todo list should be presented to the user. \ No newline at end of file From a1c1890d63f43a9544c568224d0a75fb3d54fe00 Mon Sep 17 00:00:00 2001 From: Aayush Chaudhary Date: Wed, 27 Sep 2023 17:40:37 +0530 Subject: [PATCH 2/2] Changed the test cases to End-to-end scenario --- data/test-cases/plugins/todo/API/Accept_issue.md | 4 ++-- data/test-cases/plugins/todo/API/Add_issue.md | 5 +++-- data/test-cases/plugins/todo/API/Bump_issue.md | 7 ++++--- data/test-cases/plugins/todo/API/Complete_issue.md | 4 ++-- data/test-cases/plugins/todo/API/Delete_issue.md | 5 +++-- data/test-cases/plugins/todo/API/Edit issue.md | 10 ++++++---- data/test-cases/plugins/todo/API/Get_issue_list.md | 3 +-- 7 files changed, 21 insertions(+), 17 deletions(-) diff --git a/data/test-cases/plugins/todo/API/Accept_issue.md b/data/test-cases/plugins/todo/API/Accept_issue.md index b2cd7043a..854d1a8e0 100644 --- a/data/test-cases/plugins/todo/API/Accept_issue.md +++ b/data/test-cases/plugins/todo/API/Accept_issue.md @@ -34,8 +34,8 @@ steps_hashed: null **Step 1** -1. Provide the authtoken(in postman) of the user to whom the Todo is assigned. -2. Provide the id(mandatory field) of the Todo from the list of the users to whom the ToDo is assigned. +1. Create an issue from any user's account and assign it to the other user. +2. Open the Todo RHS and click on "Add to my list" button, or open the Todo bot chat and click on "Add to my list" button in slack attachement. **Expected** diff --git a/data/test-cases/plugins/todo/API/Add_issue.md b/data/test-cases/plugins/todo/API/Add_issue.md index 898bfe07c..5835c7fe6 100644 --- a/data/test-cases/plugins/todo/API/Add_issue.md +++ b/data/test-cases/plugins/todo/API/Add_issue.md @@ -34,8 +34,9 @@ steps_hashed: null **Step 1** -1. Fill all the mandatory fields of the API body. -2. Provide the correct authtoken of the user(in postman). +1. Click on the Add isue button. +2. Fill all the mandatory fields. +3. Click on the save button. **Expected** diff --git a/data/test-cases/plugins/todo/API/Bump_issue.md b/data/test-cases/plugins/todo/API/Bump_issue.md index 93904411e..07f18d605 100644 --- a/data/test-cases/plugins/todo/API/Bump_issue.md +++ b/data/test-cases/plugins/todo/API/Bump_issue.md @@ -34,9 +34,10 @@ steps_hashed: null **Step 1** -1. Provide the authtoken(in postman) of the user to whom the Todo is assigned. -2. Provide the id(mandatory field) of the ToDo from the list of the user to whom the Todo is aasigned. +1. Open the sent Todo list from the Todo plugin RHS. +2. Click on the options of any desired Todo. +3. Click on bumo button. **Expected** -The desired Todo should get accepted. \ No newline at end of file +The assigned user should get a reminder notification for the task bumped. \ No newline at end of file diff --git a/data/test-cases/plugins/todo/API/Complete_issue.md b/data/test-cases/plugins/todo/API/Complete_issue.md index d9e5b9004..4cd3c54aa 100644 --- a/data/test-cases/plugins/todo/API/Complete_issue.md +++ b/data/test-cases/plugins/todo/API/Complete_issue.md @@ -34,8 +34,8 @@ steps_hashed: null **Step 1** -1. Provide the correct authtoken(in Postman) of the correct user. -2. Provide the correct id(mndatory field) of the Todo comment. +1. Open the RHS of Todo plugin. +2. Click on the checkbox of the desired Todo. **Expected** diff --git a/data/test-cases/plugins/todo/API/Delete_issue.md b/data/test-cases/plugins/todo/API/Delete_issue.md index 4340d383f..5f1e03e17 100644 --- a/data/test-cases/plugins/todo/API/Delete_issue.md +++ b/data/test-cases/plugins/todo/API/Delete_issue.md @@ -34,8 +34,9 @@ steps_hashed: null **Step 1** -1. Provide the correct authtoken(in postman) of the user. -2. Fill the mandatory ID field correctly. +1. Open the Todo plugin RHS. +2. Open the menu options of the desired todo issue. +3. Click on delete Todo option. **Expected** diff --git a/data/test-cases/plugins/todo/API/Edit issue.md b/data/test-cases/plugins/todo/API/Edit issue.md index 4dd892d3e..62a9071cb 100644 --- a/data/test-cases/plugins/todo/API/Edit issue.md +++ b/data/test-cases/plugins/todo/API/Edit issue.md @@ -34,10 +34,12 @@ steps_hashed: null **Step 1** -1. Provide the id(mandatory field) of the desired Todo. -2. Enter the desired changes in message and description field(mandatory fields). -3. Provide the correct authtoken(in postman) of the user. +1. Open the RHS of the Todo plugin. +2. Open on the menu options of the desired Todo issue. +3. Click on edit issue. +4. Fill the required fields and click on save button. + **Expected** -The desired Todo should get created. \ No newline at end of file +The desired Todo should get edited. \ No newline at end of file diff --git a/data/test-cases/plugins/todo/API/Get_issue_list.md b/data/test-cases/plugins/todo/API/Get_issue_list.md index 54828ae7f..8a5f9404c 100644 --- a/data/test-cases/plugins/todo/API/Get_issue_list.md +++ b/data/test-cases/plugins/todo/API/Get_issue_list.md @@ -34,8 +34,7 @@ steps_hashed: null **Step 1** -1. Provide the correct authtoken(in postman) of the user. -2. Select the params for the Todo list(in/out). +1. Run the `/todo list` command. **Expected**