From e4266e6ff97508429c0e6ba742966a5e7d99a689 Mon Sep 17 00:00:00 2001 From: arush-vashishtha Date: Wed, 20 Dec 2023 14:59:36 +0530 Subject: [PATCH 1/7] [MM-41]: added the test cases for todo list on github. --- .../plugins/github/general/todo_list.md | 67 +++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 data/test-cases/plugins/github/general/todo_list.md diff --git a/data/test-cases/plugins/github/general/todo_list.md b/data/test-cases/plugins/github/general/todo_list.md new file mode 100644 index 000000000..26b2396fc --- /dev/null +++ b/data/test-cases/plugins/github/general/todo_list.md @@ -0,0 +1,67 @@ +--- +# (Required) Ensure all values are filled up +name: "Todo list in the channel or DM/GM using the `/github todo` command." +status: Active +priority: Normal +folder: General +authors: "@arush-vashishtha" +team_ownership: [] +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. Connect your github account to MM and create a subsciption for any desired event discussion, issue, pulls, etc; +2. Create the desirec event on the connected github repo/organization. +3. Enter the `/github todo` command in any desired channel or DM/GM on MM. + +**Step 2** + +1. After step 1, close the created event on the connected account on github. +2. Run the `/github todo` command again in any desired channel or DM/GM on MM. + +**Step 3** + +1. Merge any desiered open PR on the connected account on github. +2. Enter the `/github todo` command in any desired channel or DM/GM on MM. + +**Step 4** + +1. Read any desired unread message on the connected account on github. +2. Enter the `/github todo` command in any desired channel or DM/GM on MM. + +**Step 5** + +1. Approve any pending requested review on the connected account on github. +2. Enter the `/github todo` command in any desired channel or DM/GM on MM. + +**Step 6** + +1. Approve any pending requested review on the connected account on github. +2. Enter the `/github todo` command in any desired channel or DM/GM on MM. + +**Expected** + From 30abbda571f96596fba484fa4c070401b33cac0d Mon Sep 17 00:00:00 2001 From: arush-vashishtha Date: Wed, 20 Dec 2023 16:42:40 +0530 Subject: [PATCH 2/7] [MM-41]: added the test cases for the todo list. --- .../plugins/github/general/todo_list.md | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/data/test-cases/plugins/github/general/todo_list.md b/data/test-cases/plugins/github/general/todo_list.md index 26b2396fc..8451a9323 100644 --- a/data/test-cases/plugins/github/general/todo_list.md +++ b/data/test-cases/plugins/github/general/todo_list.md @@ -55,13 +55,23 @@ steps_hashed: null **Step 5** -1. Approve any pending requested review on the connected account on github. +1. Approve any desired pending requested review on the connected account on github. 2. Enter the `/github todo` command in any desired channel or DM/GM on MM. **Step 6** -1. Approve any pending requested review on the connected account on github. -2. Enter the `/github todo` command in any desired channel or DM/GM on MM. +1. Click on the desired `owner` or `organisation` hyperlink part of the generated list on MM. + +**Step 7** + +1. Click on the desired hyperlink part of the generated list on MM. **Expected** +The generated message should show the list for unread messages, review requests, open PRs and user's assignments with the formats, `owner or organisation/repo : ` or `owner or organisation/repo : ` in the desired channel or DM/GM on MM. +After step 2, the generated message should not show the closed events in the desired channel or DM/GM on MM. +After step 3, the desired PR should not be visible in the generated message in the desired channel or DM/GM on MM. +After step 4, the desired message should not be visible in the generated message in the desired channel or DM/GM on MM. +After step 5, the desired pending request should not be visible in the generated in the desired channel or DM/GM on MM. +After step 6, the user should be redirected to the owner account or organisation on github respectively. +After step 7, the user should be redirected to the event on github. \ No newline at end of file From 6adb51cddacc07c320dfd562784a1a617c066240 Mon Sep 17 00:00:00 2001 From: arush-vashishtha Date: Wed, 20 Dec 2023 16:47:12 +0530 Subject: [PATCH 3/7] [MM-41]: small changes. --- data/test-cases/plugins/github/general/todo_list.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/test-cases/plugins/github/general/todo_list.md b/data/test-cases/plugins/github/general/todo_list.md index 8451a9323..1b581cefa 100644 --- a/data/test-cases/plugins/github/general/todo_list.md +++ b/data/test-cases/plugins/github/general/todo_list.md @@ -73,5 +73,5 @@ After step 2, the generated message should not show the closed events in the des After step 3, the desired PR should not be visible in the generated message in the desired channel or DM/GM on MM. After step 4, the desired message should not be visible in the generated message in the desired channel or DM/GM on MM. After step 5, the desired pending request should not be visible in the generated in the desired channel or DM/GM on MM. -After step 6, the user should be redirected to the owner account or organisation on github respectively. -After step 7, the user should be redirected to the event on github. \ No newline at end of file +After step 6, the user should be redirected to the desired owner account or organisation on github respectively. +After step 7, the user should be redirected to the desired event on github. \ No newline at end of file From 1c6569024b7878d2dae624b49795c2640a2f87c3 Mon Sep 17 00:00:00 2001 From: arush-vashishtha Date: Fri, 29 Dec 2023 15:55:25 +0530 Subject: [PATCH 4/7] fixed comments by Aayush for some words changing. --- data/test-cases/plugins/github/general/todo_list.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/data/test-cases/plugins/github/general/todo_list.md b/data/test-cases/plugins/github/general/todo_list.md index 1b581cefa..ea04cbd45 100644 --- a/data/test-cases/plugins/github/general/todo_list.md +++ b/data/test-cases/plugins/github/general/todo_list.md @@ -35,8 +35,8 @@ steps_hashed: null **Step 1** 1. Connect your github account to MM and create a subsciption for any desired event discussion, issue, pulls, etc; -2. Create the desirec event on the connected github repo/organization. -3. Enter the `/github todo` command in any desired channel or DM/GM on MM. +2. trigger the desired event on the connected github repo/organization. +3. Run the `/github todo` command in any desired channel or DM/GM on MM. **Step 2** @@ -46,17 +46,17 @@ steps_hashed: null **Step 3** 1. Merge any desiered open PR on the connected account on github. -2. Enter the `/github todo` command in any desired channel or DM/GM on MM. +2. Run the `/github todo` command in any desired channel or DM/GM on MM. **Step 4** 1. Read any desired unread message on the connected account on github. -2. Enter the `/github todo` command in any desired channel or DM/GM on MM. +2. Run the `/github todo` command in any desired channel or DM/GM on MM. **Step 5** 1. Approve any desired pending requested review on the connected account on github. -2. Enter the `/github todo` command in any desired channel or DM/GM on MM. +2. Run the `/github todo` command in any desired channel or DM/GM on MM. **Step 6** From 1af3e537ddfee8d75f0f9884075fed57e9f1ec69 Mon Sep 17 00:00:00 2001 From: arush-vashishtha Date: Fri, 29 Dec 2023 15:58:05 +0530 Subject: [PATCH 5/7] fixed comments by Aayush for some words changing. --- data/test-cases/plugins/github/general/todo_list.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/test-cases/plugins/github/general/todo_list.md b/data/test-cases/plugins/github/general/todo_list.md index ea04cbd45..ff19cf95b 100644 --- a/data/test-cases/plugins/github/general/todo_list.md +++ b/data/test-cases/plugins/github/general/todo_list.md @@ -35,7 +35,7 @@ steps_hashed: null **Step 1** 1. Connect your github account to MM and create a subsciption for any desired event discussion, issue, pulls, etc; -2. trigger the desired event on the connected github repo/organization. +2. Trigger the desired event on the connected github repo/organization. 3. Run the `/github todo` command in any desired channel or DM/GM on MM. **Step 2** From 1b07dbc8331b53478b3aec126c521d91c1fc35f6 Mon Sep 17 00:00:00 2001 From: arush-vashishtha Date: Thu, 11 Jan 2024 17:55:37 +0530 Subject: [PATCH 6/7] [MM-41]: Fixed the comments by Raghav. --- .../plugins/github/general/todo_list.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/data/test-cases/plugins/github/general/todo_list.md b/data/test-cases/plugins/github/general/todo_list.md index ff19cf95b..6e593b003 100644 --- a/data/test-cases/plugins/github/general/todo_list.md +++ b/data/test-cases/plugins/github/general/todo_list.md @@ -34,9 +34,9 @@ steps_hashed: null **Step 1** -1. Connect your github account to MM and create a subsciption for any desired event discussion, issue, pulls, etc; -2. Trigger the desired event on the connected github repo/organization. -3. Run the `/github todo` command in any desired channel or DM/GM on MM. +1. Connect your MM account to Github account. +2. Trigger the desired event e.g discussion, issue, pulls, etc on the connected github repo/organization and create notification in the subscribed channel or DM/GM on MM. +3. Navigate to MM and run the `/github todo` command in the desired channel or DM/GM on MM. **Step 2** @@ -46,25 +46,25 @@ steps_hashed: null **Step 3** 1. Merge any desiered open PR on the connected account on github. -2. Run the `/github todo` command in any desired channel or DM/GM on MM. +2. Run the `/github todo` command in the desired channel or DM/GM on MM. **Step 4** 1. Read any desired unread message on the connected account on github. -2. Run the `/github todo` command in any desired channel or DM/GM on MM. +2. Run the `/github todo` command in the desired channel or DM/GM on MM. **Step 5** 1. Approve any desired pending requested review on the connected account on github. -2. Run the `/github todo` command in any desired channel or DM/GM on MM. +2. Run the `/github todo` command in the desired channel or DM/GM on MM. **Step 6** -1. Click on the desired `owner` or `organisation` hyperlink part of the generated list on MM. +1. After step 1, Click on the desired `owner` or `organisation` hyperlink part of the generated list on MM. **Step 7** -1. Click on the desired hyperlink part of the generated list on MM. +1. After step 1, Click on the desired hyperlink part of the generated list on MM. **Expected** From 3aea60e61e71b8f018421095b5a37c0c3062aa8a Mon Sep 17 00:00:00 2001 From: arush-vashishtha Date: Fri, 12 Jan 2024 18:42:39 +0530 Subject: [PATCH 7/7] [MM-41]: Fixed the comment for notification. --- data/test-cases/plugins/github/general/todo_list.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/data/test-cases/plugins/github/general/todo_list.md b/data/test-cases/plugins/github/general/todo_list.md index 6e593b003..ba63e8cf5 100644 --- a/data/test-cases/plugins/github/general/todo_list.md +++ b/data/test-cases/plugins/github/general/todo_list.md @@ -35,8 +35,8 @@ steps_hashed: null **Step 1** 1. Connect your MM account to Github account. -2. Trigger the desired event e.g discussion, issue, pulls, etc on the connected github repo/organization and create notification in the subscribed channel or DM/GM on MM. -3. Navigate to MM and run the `/github todo` command in the desired channel or DM/GM on MM. +2. Create a notification for any desired event e.g. discussion, issue, pulls, etc on GitHub. +3. Navigate to MM and run the `/github todo` command in any desired channel or DM/GM on MM. **Step 2** @@ -46,17 +46,17 @@ steps_hashed: null **Step 3** 1. Merge any desiered open PR on the connected account on github. -2. Run the `/github todo` command in the desired channel or DM/GM on MM. +2. Run the `/github todo` command in any desired channel or DM/GM on MM. **Step 4** 1. Read any desired unread message on the connected account on github. -2. Run the `/github todo` command in the desired channel or DM/GM on MM. +2. Run the `/github todo` command in any desired channel or DM/GM on MM. **Step 5** 1. Approve any desired pending requested review on the connected account on github. -2. Run the `/github todo` command in the desired channel or DM/GM on MM. +2. Run the `/github todo` command in any desired channel or DM/GM on MM. **Step 6**