From 4490182f966a64a6190585282075b153fc7495d7 Mon Sep 17 00:00:00 2001 From: Arush Vashishtha <145128655+arush-vashishtha@users.noreply.github.com> Date: Tue, 16 Jan 2024 18:37:24 +0530 Subject: [PATCH] [MM-54]: Added the test cases for revoking the application on gitlab and proper message is displayed for member access request in todo. (#27) * [MM-54]: Added the test cases for revoking the application on gitlab. * [MM-54]: added the file for PR 407. * [MM-54]: fixed the comments by Aayush. * [MM-54]: fixed the comments by Aayush' * [MM-54]: Fixed the comments by Raghav. * [MM-54]: replaced private with public for projects/groups on gitlab. --- .../plugins/gitlab/sidebar/merge_request.md | 50 ++++++++++++++++ .../sidebar/refresh_sidebar_after_revoke.md | 57 +++++++++++++++++++ 2 files changed, 107 insertions(+) create mode 100644 data/test-cases/plugins/gitlab/sidebar/merge_request.md create mode 100644 data/test-cases/plugins/gitlab/sidebar/refresh_sidebar_after_revoke.md diff --git a/data/test-cases/plugins/gitlab/sidebar/merge_request.md b/data/test-cases/plugins/gitlab/sidebar/merge_request.md new file mode 100644 index 000000000..c85ba8be0 --- /dev/null +++ b/data/test-cases/plugins/gitlab/sidebar/merge_request.md @@ -0,0 +1,50 @@ +--- +# (Required) Ensure all values are filled up +name: "Merge request message is rendered properly in the RHS of gitlab on MM" +status: Active +priority: Normal +folder: Sidebar +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. Generate a access request to your desired public project/group from another user on Gitlab. +2. Navigate to MM and click on the `To-do list` icon in the LHS menu on MM. +3. Check the desired member access request in the RHS of `To-do list` on MM. + +**Step 2** + +1. Accept or reject any desired member access request on Gitlab. +2. Navigate to MM and click on the `To-do list` icon in the LHS menu on MM. +3. Check the desired member access request in the RHS of `To-do list` on MM. + +**Expected** + +The member access request to the desired public project/group should be shown with proper description of the request and in proper UI in the RHS of Gitlab on MM. +After step 2, the desired member access request should be removed from the `To-do list` in RHS of Gitlab on MM. \ No newline at end of file diff --git a/data/test-cases/plugins/gitlab/sidebar/refresh_sidebar_after_revoke.md b/data/test-cases/plugins/gitlab/sidebar/refresh_sidebar_after_revoke.md new file mode 100644 index 000000000..ef83a8c1c --- /dev/null +++ b/data/test-cases/plugins/gitlab/sidebar/refresh_sidebar_after_revoke.md @@ -0,0 +1,57 @@ +--- +# (Required) Ensure all values are filled up +name: "Refresh the sidebar after revoking the application from the gitlab." +status: Active +priority: Normal +folder: Sidebar +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. Revoke the OAuth token for your app from the connected gitlab account. +2. Navigate to MM and click on the refresh button in the LHS of gitlab. +3. Open the DM from Gitlab bot. + +**Step 2** + +1. Revoke the OAuth token for your app from the connected gitlab account. +2. Navigate to MM and refresh the page. +3. Open the DM from Gitlab bot. + +**Step 3** + +1. Revoke the OAuth token for your app from the connected gitlab account. +2. Navigate to MM and enter any slash command that fetches the data from the gitlab. +3. Open the DM from Gitlab bot. + +**Expected** + +All the Gitlab icons in the LHS should be removed and the user should get a message in the DM from Gitlab bot that their account has been disconnected on MM. +After step 2, all the Gitlab icons in the LHS should be removed and the user should get a message in the DM from Gitlab bot that their account has been disconnected on MM. +After step 3, all the Gitlab icons in the LHS should be removed and the user should get a message in the DM from Gitlab bot that their account has been disconnected on MM. \ No newline at end of file