From 9114f4b6ee19eec1a3d54cde3e42c0b0175e7709 Mon Sep 17 00:00:00 2001 From: Arush Vashishtha <145128655+arush-vashishtha@users.noreply.github.com> Date: Fri, 19 Jan 2024 11:48:50 +0530 Subject: [PATCH] [MM-93]: Added the test cases for the image in the comment notification. (#33) * [MM-93]: Added the test cases for the image in the comment notification. * [MM-93]: Fixed the changes required for connect flow. --- .../Image_in_gitlab_comment.md | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 data/test-cases/plugins/gitlab/subscriptions-and-notifications/Image_in_gitlab_comment.md diff --git a/data/test-cases/plugins/gitlab/subscriptions-and-notifications/Image_in_gitlab_comment.md b/data/test-cases/plugins/gitlab/subscriptions-and-notifications/Image_in_gitlab_comment.md new file mode 100644 index 000000000..c7f9d6bd5 --- /dev/null +++ b/data/test-cases/plugins/gitlab/subscriptions-and-notifications/Image_in_gitlab_comment.md @@ -0,0 +1,52 @@ +--- +# (Required) Ensure all values are filled up +name: "Image attachment properly shown in the comment notification." +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. Connect your MM account to Gitlab account. +2. In the desired channel or DM/GM create subscriptions for `issue_comments` and `merge_request_comments` by using the slash command `/gitlab subscriptions add /` on MM. +3. Navigate to the subscribed repository on Gitlab and add an image in the comments to any desired `issue` or `merge request` on Gitlab. +4. Navigate to the desired channel or DM/GM on MM. + +**Step 2** + +1. Connect your MM account to Gitlab account. +2. In the desired channel or DM/GM create subscriptions for `issue_comments` and `merge_request_comments` by using the slash command `/gitlab subscriptions add /` on MM. +3. Navigate to the subscribed repository on Gitlab and add an embedded image in the comments to any desired `issue` or `merge request` on Gitlab. +4. Navigate to the desired channel or DM/GM on MM. + +**Expected** + +The comment notification in the desired channel or DM/GM on MM should show the proper image attached to the desired `issue` or `merge request` on Gitlab. +After step 2, the comment notification in the desired channel or DM/GM on MM should show the proper embedded image in the comment on desired `issue` or `merge reuest` on Gitlab. \ No newline at end of file