From 86ce1099680840a23bae1e2f432913f59fdbda8e Mon Sep 17 00:00:00 2001 From: arush-vashishtha Date: Fri, 29 Dec 2023 15:18:05 +0530 Subject: [PATCH 1/6] [MM-70]:Added the test cases for PR 404. --- .../Todo_list_member_access_request.md | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 data/test-cases/plugins/gitlab/subscriptions-and-notifications/Todo_list_member_access_request.md diff --git a/data/test-cases/plugins/gitlab/subscriptions-and-notifications/Todo_list_member_access_request.md b/data/test-cases/plugins/gitlab/subscriptions-and-notifications/Todo_list_member_access_request.md new file mode 100644 index 000000000..c02989454 --- /dev/null +++ b/data/test-cases/plugins/gitlab/subscriptions-and-notifications/Todo_list_member_access_request.md @@ -0,0 +1,43 @@ +--- +# (Required) Ensure all values are filled up +name: "Member access request in the todo list after entering the `/gitlab todo` slash command." +status: Active +priority: Normal +folder: Subscriptions-and-notifications +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. Create subscription in any desired channel or DM/Gm on MM to any desired public project in a public group on gitlab. +2. Create a member access request from a different user to the desired public project on gitlab. +3. Navigate to the desired channel or DM/GM on MM and enter the slash command `/gitlab todo`. + +**Expected** + +The user should get a list of todo and the notification for member access request should follow the format, `member_access_requested : has requested access to `. \ No newline at end of file From c46c62ad3e52ae847eb76e4250129084e1e34540 Mon Sep 17 00:00:00 2001 From: arush-vashishtha Date: Wed, 3 Jan 2024 16:31:20 +0530 Subject: [PATCH 2/6] added the test cases for create gitlab issue --- .../Create_gitlab_issue.md | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 data/test-cases/plugins/gitlab/context-menu-feature/Create_gitlab_issue.md diff --git a/data/test-cases/plugins/gitlab/context-menu-feature/Create_gitlab_issue.md b/data/test-cases/plugins/gitlab/context-menu-feature/Create_gitlab_issue.md new file mode 100644 index 000000000..5265f921f --- /dev/null +++ b/data/test-cases/plugins/gitlab/context-menu-feature/Create_gitlab_issue.md @@ -0,0 +1,49 @@ +--- +# (Required) Ensure all values are filled up +name: "Create a Gitlab issue from the context menu on MM." +status: Active +priority: Normal +folder: Context-menu-feature +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. Hover cursor over a non-system message and click on the `message-actions` then select `Create Gitlab Issue` on MM. +2. In the `Create Gitlab Issue` modal, select and enter the details as per the requiement for the issue and click on `Submit` button on MM. +3. Navigate to the issues in the selected project on Gitlab. + +**Step 2** + +1. Hover cursor over a non-system message and click on the `message-actions` then select `Create Gitlab Issue` on MM. +2. In the `Create Gitlab Issue` modal, select and enter the details as per the requiement for the issue and then remove the selected project in the modal on MM. + +**Expected** + +The issue should be created for the selected project on Gitlab. +After step 2, the dropdown menu for additional options should get hidden upon removing the project. \ No newline at end of file From 725105373474bdf148eb75eacf991e1eb036a41a Mon Sep 17 00:00:00 2001 From: arush-vashishtha Date: Wed, 3 Jan 2024 18:40:27 +0530 Subject: [PATCH 3/6] [MM-70]: added the test cases for the message attach to gitlab issue. --- .../Attach_message_gitlab_issue.md | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 data/test-cases/plugins/gitlab/context-menu-feature/Attach_message_gitlab_issue.md diff --git a/data/test-cases/plugins/gitlab/context-menu-feature/Attach_message_gitlab_issue.md b/data/test-cases/plugins/gitlab/context-menu-feature/Attach_message_gitlab_issue.md new file mode 100644 index 000000000..ada635780 --- /dev/null +++ b/data/test-cases/plugins/gitlab/context-menu-feature/Attach_message_gitlab_issue.md @@ -0,0 +1,43 @@ +--- +# (Required) Ensure all values are filled up +name: "Create a Gitlab issue from the context menu on MM." +status: Active +priority: Normal +folder: Context-menu-feature +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. Hover cursor over a non-system message and click on the `message-actions` then select `Attach Message to GitLab Issue` on MM. +2. In the `Attach Message to GitLab Issue` modal, select the desired Gitlab issue to attach the message and click on `Attach` button on MM. +3. Navigate to the desired issue on the Gitlab. + +**Expected** + +The message should get added as a comment on the desired issue on Gitlab. \ No newline at end of file From 36a90316320254929c3e22daf307b0f8021870c3 Mon Sep 17 00:00:00 2001 From: arush-vashishtha Date: Wed, 10 Jan 2024 17:35:48 +0530 Subject: [PATCH 4/6] Fixed the comments by Aayush. --- .../context-menu-feature/Attach_message_gitlab_issue.md | 4 ++-- .../gitlab/context-menu-feature/Create_gitlab_issue.md | 6 +++--- .../Todo_list_member_access_request.md | 7 +++---- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/data/test-cases/plugins/gitlab/context-menu-feature/Attach_message_gitlab_issue.md b/data/test-cases/plugins/gitlab/context-menu-feature/Attach_message_gitlab_issue.md index ada635780..f661ae90f 100644 --- a/data/test-cases/plugins/gitlab/context-menu-feature/Attach_message_gitlab_issue.md +++ b/data/test-cases/plugins/gitlab/context-menu-feature/Attach_message_gitlab_issue.md @@ -1,6 +1,6 @@ --- # (Required) Ensure all values are filled up -name: "Create a Gitlab issue from the context menu on MM." +name: "Add comment to a gitlab issue from the `Attach Message to GitLab Issue` option in the context menu on MM." status: Active priority: Normal folder: Context-menu-feature @@ -34,7 +34,7 @@ steps_hashed: null **Step 1** -1. Hover cursor over a non-system message and click on the `message-actions` then select `Attach Message to GitLab Issue` on MM. +1. Hover cursor over a user message and click on the `message-actions` then select `Attach Message to GitLab Issue` on MM. 2. In the `Attach Message to GitLab Issue` modal, select the desired Gitlab issue to attach the message and click on `Attach` button on MM. 3. Navigate to the desired issue on the Gitlab. diff --git a/data/test-cases/plugins/gitlab/context-menu-feature/Create_gitlab_issue.md b/data/test-cases/plugins/gitlab/context-menu-feature/Create_gitlab_issue.md index 5265f921f..a86bf9acc 100644 --- a/data/test-cases/plugins/gitlab/context-menu-feature/Create_gitlab_issue.md +++ b/data/test-cases/plugins/gitlab/context-menu-feature/Create_gitlab_issue.md @@ -1,6 +1,6 @@ --- # (Required) Ensure all values are filled up -name: "Create a Gitlab issue from the context menu on MM." +name: "Create a Gitlab issue from the `Create Gitlab Issue` in the context menu on MM." status: Active priority: Normal folder: Context-menu-feature @@ -34,13 +34,13 @@ steps_hashed: null **Step 1** -1. Hover cursor over a non-system message and click on the `message-actions` then select `Create Gitlab Issue` on MM. +1. Hover cursor over a user message and click on the `message-actions` then select `Create Gitlab Issue` on MM. 2. In the `Create Gitlab Issue` modal, select and enter the details as per the requiement for the issue and click on `Submit` button on MM. 3. Navigate to the issues in the selected project on Gitlab. **Step 2** -1. Hover cursor over a non-system message and click on the `message-actions` then select `Create Gitlab Issue` on MM. +1. Hover cursor over a user message and click on the `message-actions` then select `Create Gitlab Issue` on MM. 2. In the `Create Gitlab Issue` modal, select and enter the details as per the requiement for the issue and then remove the selected project in the modal on MM. **Expected** diff --git a/data/test-cases/plugins/gitlab/subscriptions-and-notifications/Todo_list_member_access_request.md b/data/test-cases/plugins/gitlab/subscriptions-and-notifications/Todo_list_member_access_request.md index c02989454..d8b3358d0 100644 --- a/data/test-cases/plugins/gitlab/subscriptions-and-notifications/Todo_list_member_access_request.md +++ b/data/test-cases/plugins/gitlab/subscriptions-and-notifications/Todo_list_member_access_request.md @@ -34,10 +34,9 @@ steps_hashed: null **Step 1** -1. Create subscription in any desired channel or DM/Gm on MM to any desired public project in a public group on gitlab. -2. Create a member access request from a different user to the desired public project on gitlab. -3. Navigate to the desired channel or DM/GM on MM and enter the slash command `/gitlab todo`. +1. Create a `member access request` from a different user to any one of your desired public project/group on gitlab. +2. Navigate to the desired channel or DM/GM on MM and enter the slash command `/gitlab todo`. **Expected** -The user should get a list of todo and the notification for member access request should follow the format, `member_access_requested : has requested access to `. \ No newline at end of file +The user should get a list of todo in the desired channel or DM/GM on MM and the notification for member access request should follow the format, `member_access_requested : has requested access to `. \ No newline at end of file From b7528c33bd2599b788e5e14726717fd08f6bd6b0 Mon Sep 17 00:00:00 2001 From: Arush Vashishtha <145128655+arush-vashishtha@users.noreply.github.com> Date: Tue, 16 Jan 2024 18:57:07 +0530 Subject: [PATCH 5/6] Review fixes by Raghav Co-authored-by: Raghav Aggarwal --- .../gitlab/context-menu-feature/Attach_message_gitlab_issue.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/test-cases/plugins/gitlab/context-menu-feature/Attach_message_gitlab_issue.md b/data/test-cases/plugins/gitlab/context-menu-feature/Attach_message_gitlab_issue.md index f661ae90f..6e3c65bc2 100644 --- a/data/test-cases/plugins/gitlab/context-menu-feature/Attach_message_gitlab_issue.md +++ b/data/test-cases/plugins/gitlab/context-menu-feature/Attach_message_gitlab_issue.md @@ -1,6 +1,6 @@ --- # (Required) Ensure all values are filled up -name: "Add comment to a gitlab issue from the `Attach Message to GitLab Issue` option in the context menu on MM." +name: "Add comment to a gitlab issue from the `Attach to GitLab Issue` option in the context menu on MM." status: Active priority: Normal folder: Context-menu-feature From e05af2a4885486ca550fb92e23dad2d9f8167d6f Mon Sep 17 00:00:00 2001 From: Arush Vashishtha <145128655+arush-vashishtha@users.noreply.github.com> Date: Tue, 16 Jan 2024 18:57:22 +0530 Subject: [PATCH 6/6] Review fixes by Raghav Co-authored-by: Raghav Aggarwal --- .../gitlab/context-menu-feature/Attach_message_gitlab_issue.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/test-cases/plugins/gitlab/context-menu-feature/Attach_message_gitlab_issue.md b/data/test-cases/plugins/gitlab/context-menu-feature/Attach_message_gitlab_issue.md index 6e3c65bc2..f7cbba9da 100644 --- a/data/test-cases/plugins/gitlab/context-menu-feature/Attach_message_gitlab_issue.md +++ b/data/test-cases/plugins/gitlab/context-menu-feature/Attach_message_gitlab_issue.md @@ -34,7 +34,7 @@ steps_hashed: null **Step 1** -1. Hover cursor over a user message and click on the `message-actions` then select `Attach Message to GitLab Issue` on MM. +1. Hover cursor over a user message and click on the `message-actions` then select `Attach to GitLab Issue` on MM. 2. In the `Attach Message to GitLab Issue` modal, select the desired Gitlab issue to attach the message and click on `Attach` button on MM. 3. Navigate to the desired issue on the Gitlab.