Skip to content

Commit

Permalink
Add test cases for Admin control for User settings (#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
yasserfaraazkhan authored Jul 15, 2024
1 parent feb6e31 commit 5d875e2
Show file tree
Hide file tree
Showing 13 changed files with 367 additions and 6 deletions.
5 changes: 4 additions & 1 deletion data/folder-by-parent.json
Original file line number Diff line number Diff line change
Expand Up @@ -478,5 +478,8 @@
"Users and Teams"
]
},
{ "parent": "suite/system-console/user-management", "folders": ["New UI", "Users"] }
{
"parent": "suite/system-console/user-management",
"folders": ["Admin Control User Settings", "New UI", "Users"]
}
]
9 changes: 9 additions & 0 deletions data/folders.json
Original file line number Diff line number Diff line change
Expand Up @@ -3186,6 +3186,15 @@
"fullNames": ["Suite", "System Console", "User Management"],
"fullPath": "suite/system-console/user-management"
},
{
"id": 15372553,
"parentId": 538610,
"name": "Admin Control User Settings",
"index": 2,
"folderType": "TEST_CASE",
"fullNames": ["Suite", "System Console", "User Management", "Admin Control User Settings"],
"fullPath": "suite/system-console/user-management/admin-control-user-settings"
},
{
"id": 12311001,
"parentId": 538610,
Expand Down
13 changes: 12 additions & 1 deletion data/key-and-path.json
Original file line number Diff line number Diff line change
Expand Up @@ -6249,5 +6249,16 @@
{ "key": "MM-T5592", "path": "plugins/nps-plugin/new-nps-plugin", "id": 165527622 },
{ "key": "MM-T5593", "path": "plugins/nps-plugin/new-nps-plugin", "id": 165527624 },
{ "key": "MM-T459", "path": "channels/multi-team-and-dms", "id": 166213894 },
{ "key": "MM-T5594", "path": "zephyr-reflect-ai-testing", "id": 166214131 }
{ "key": "MM-T5594", "path": "zephyr-reflect-ai-testing", "id": 166214131 },
{ "key": "MM-T5595", "path": "zephyr-reflect-ai-testing", "id": 168707708 },
{
"key": "MM-T5596",
"path": "suite/system-console/user-management/admin-control-user-settings",
"id": 169995875
},
{
"key": "MM-T5597",
"path": "suite/system-console/user-management/admin-control-user-settings",
"id": 169995876
}
]
12 changes: 11 additions & 1 deletion data/test-by-folder.json
Original file line number Diff line number Diff line change
Expand Up @@ -6191,6 +6191,13 @@
"When deactivating users in the System Console, email address should not disappear"
]
},
{
"folder": "suite/system-console/user-management/admin-control-user-settings",
"tests": [
"Admin should be able to see the User's settings on a licensed instance",
"User with System Manager or User manager role and edit access to user management can Manage User settings"
]
},
{
"folder": "suite/system-console/user-management/new-ui",
"tests": [
Expand Down Expand Up @@ -6265,6 +6272,9 @@
},
{
"folder": "zephyr-reflect-ai-testing",
"tests": ["[Zephyr Reflect AI testing] Group Messaging: Add first user (cloned)"]
"tests": [
"[Zephyr Reflect AI testing] Group Messaging: Add first user (cloned)",
"[Zephyr Reflect AI testing] Username changes when viewed by other user (cloned)"
]
}
]
1 change: 1 addition & 0 deletions data/test-cases-folders.json
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@
"suite/system-console/site-configuration/users-and-teams": "Users and Teams",
"suite/system-console/team-search-and-pagination": "Team Search and Pagination",
"suite/system-console/user-management": "User Management",
"suite/system-console/user-management/admin-control-user-settings": "Admin Control User Settings",
"suite/system-console/user-management/new-ui": "New UI",
"suite/system-console/user-management/users": "Users",
"suite/telemetry": "Telemetry",
Expand Down
17 changes: 17 additions & 0 deletions data/test-cases-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -17648,6 +17648,19 @@
{
"name": "User Management",
"routes": [
{
"name": "Admin Control User Settings",
"routes": [
{
"name": "Admin should be able to see the User's settings on a licensed instance",
"file": "suite/system-console/user-management/admin-control-user-settings/MM-T5596.md"
},
{
"name": "User with System Manager or User manager role and edit access to user management can Manage User settings",
"file": "suite/system-console/user-management/admin-control-user-settings/MM-T5597.md"
}
]
},
{
"name": "Option should be hidden to update own email via System Console",
"file": "suite/system-console/user-management/MM-T13.md"
Expand Down Expand Up @@ -17944,6 +17957,10 @@
{
"name": "[Zephyr Reflect AI testing] Group Messaging: Add first user (cloned)",
"file": "zephyr-reflect-ai-testing/MM-T5594.md"
},
{
"name": "[Zephyr Reflect AI testing] Username changes when viewed by other user (cloned)",
"file": "zephyr-reflect-ai-testing/MM-T5595.md"
}
]
}
Expand Down
5 changes: 4 additions & 1 deletion data/test-cases-slugs.json
Original file line number Diff line number Diff line change
Expand Up @@ -4732,6 +4732,8 @@
"suite/system-console/team-search-and-pagination/mm-t1220",
"suite/system-console/team-search-and-pagination/mm-t1221",
"suite/system-console/team-search-and-pagination/mm-t1222",
"suite/system-console/user-management/admin-control-user-settings/mm-t5596",
"suite/system-console/user-management/admin-control-user-settings/mm-t5597",
"suite/system-console/user-management/mm-t13",
"suite/system-console/user-management/mm-t915",
"suite/system-console/user-management/mm-t916",
Expand Down Expand Up @@ -4801,5 +4803,6 @@
"ticket-coverage/mm-t35",
"ticket-coverage/mm-t36",
"ticket-coverage/mm-t37",
"zephyr-reflect-ai-testing/mm-t5594"
"zephyr-reflect-ai-testing/mm-t5594",
"zephyr-reflect-ai-testing/mm-t5595"
]
12 changes: 12 additions & 0 deletions data/test-cases-toc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8528,6 +8528,14 @@
"name": "Manage Users on Server - User filter works and clears",
"slug": "suite/system-console/user-management/mm-t915"
},
"suite/system-console/user-management/admin-control-user-settings/mm-t5596": {
"name": "Admin should be able to see the User's settings on a licensed instance",
"slug": "suite/system-console/user-management/admin-control-user-settings/mm-t5596"
},
"suite/system-console/user-management/admin-control-user-settings/mm-t5597": {
"name": "User with System Manager or User manager role and edit access to user management can Manage User settings",
"slug": "suite/system-console/user-management/admin-control-user-settings/mm-t5597"
},
"suite/system-console/user-management/users/mm-t3898": {
"name": "User - Demoting to guest should remove Team/Channel Admin permission",
"slug": "suite/system-console/user-management/users/mm-t3898"
Expand Down Expand Up @@ -12398,6 +12406,10 @@
"name": "[Zephyr Reflect AI testing] Group Messaging: Add first user (cloned)",
"slug": "zephyr-reflect-ai-testing/mm-t5594"
},
"zephyr-reflect-ai-testing/mm-t5595": {
"name": "[Zephyr Reflect AI testing] Username changes when viewed by other user (cloned)",
"slug": "zephyr-reflect-ai-testing/mm-t5595"
},
"mobile-app--native-specific-/mm-t3271": {
"name": "RN apps: Open app via push notification (from background)",
"slug": "mobile-app--native-specific-/mm-t3271"
Expand Down
2 changes: 1 addition & 1 deletion data/test-cases/suite/notifications/MM-T510.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ key: MM-T510
created_on: "2020-01-03T18:56:10Z"
last_updated: ""
case_hashed: 38ee849aa2fc246164e9add5805c2d4741ce5fc1059c3ebd2e2005e2a8e45aa1a043805054b0f480b03b5f5d5810bc36
steps_hashed: 250d69351446a73a9ec17fb60ddcc5f74222038fc2b7ea0f7110532750c4ca4f27fdc113e36e706780154829a5b27ceb
steps_hashed: 6cb310a91928525173a5be0b927d58a42ce7f1bc84c5909819394fe5393a3a223563f3d2cd55343dfc627e045fbcd297
---

<!-- (Auto-generated) Based on frontmatter's "key" and "name" -->
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
---
# (Required) Ensure all values are filled up
name: "Admin should be able to see the User's settings on a licensed instance"
status: Active
priority: Normal
folder: Admin Control User Settings
authors: "@yasserfaraazkhan"
team_ownership:
- ICU
priority_p1_to_p4: P2 - Core Functions (Do core functions work?)

# (Optional)
location: Suite
component: null
tags: []
labels: []
tested_by_contributor: ""

# (Optional) Test type and tools
cypress: N/A
detox: N/A
mmctl: N/A
playwright: N/A
rainforest: []
manual_test_environments: []

# Do not change
id: 169995875
key: MM-T5596
created_on: "2024-07-15T10:29:10Z"
last_updated: "2024-07-15T15:59:09Z"
case_hashed: 5631c0a543536cb7af16dfef28b1995af19585d1f21e6b8a05791951e970ea4a92e9848341b0e58786baf63f9a3073bb
steps_hashed: 45fa620901d7de8265f003798548035ccf1c10213afbf683baaa0b31b990e354246fad900104d751d913783a0db2a736
---

<!-- (Auto-generated) Based on frontmatter's "key" and "name" -->

## MM-T5596: Admin should be able to see the User's settings on a licensed instance

---

**Step 1**

### Scenario: Admin cannot see the `Manage User Settings` option on a Free edition.

---

**Step 2**

1. Log into the admin account and go to System Console > Users page.
2. Search for User A.
3. In the Actions Menu, verify that `Manage User Settings` is not visible.
4. Go to User A's User configuration page.
5. Verify that `Manage User Settings` is not visible.

### Scenario: Admin cannot see the `Manage User Settings` option on a instance with Professional license.

---

**Step 3**

1. Log into the admin account and go to System Console > Edition and License.
2. Upload Professional License.
3. Go to System Console > Users page.
4. Search for User A.
5. In the Actions Menu, verify that `Manage User Settings` is not visible.
6. Go to User A's User configuration page.
7. Verify that `Manage User Settings` is visible.
8. Verify that `Manage User Settings` is disabled.

### Scenario: Admin can access the `Manage User Settings` option from user configuration page on a instance with Enterprise license.

---

**Step 4**

1. Log into the admin account and go to System Console > Users page.
2. Search for User A.
3. Go to User A's User configuration page.
4. Click on the `Manage User Settings` option.
5. Verify that a confirmation pop-up with the title `Manage User A's Settings` appears.
6. Click on the `Manage User Settings` button.
7. Verify that User A's settings modal is displayed.
8. Verify the modal has a label `Admin mode`.

### Scenario: Admin can access the `Manage User Settings` option from user list page on a instance with Enterprise license.

---

**Step 5**

1. Log into the admin account and go to System Console > Users page.
2. Search for User A.
3. In the Actions Menu, verify that `Manage User Settings` is visible.
4. Click on the `Manage User Settings` option.
5. Verify that a confirmation pop-up with the title `Manage User A's Settings` appears.
6. Click on the `Manage User Settings` button.
7. Verify that User A's settings modal is displayed.
8. Verify the modal has a label `Admin mode`.
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
---
# (Required) Ensure all values are filled up
name: "User with System Manager or User manager role and edit access to user management can Manage User settings"
status: Active
priority: Normal
folder: Admin Control User Settings
authors: "@yasserfaraazkhan"
team_ownership:
- ICU
priority_p1_to_p4: P2 - Core Functions (Do core functions work?)

# (Optional)
location: Suite
component: null
tags: []
labels: []
tested_by_contributor: ""

# (Optional) Test type and tools
cypress: N/A
detox: N/A
mmctl: N/A
playwright: N/A
rainforest: []
manual_test_environments: []

# Do not change
id: 169995876
key: MM-T5597
created_on: "2024-07-15T10:29:10Z"
last_updated: "2024-07-15T15:59:10Z"
case_hashed: af32b59503712fc533d99e6c8411daad09573021ce63cee8e99081fe5e09099c6bf37ff45d2db3d5b3e1714839ecc43f
steps_hashed: a50987a6734013ac0795bc00002807b358cae1ac3ff2d9227c91e355efcceb8b3379d141ca5e910d14e6c2ad1c7b9115
---

<!-- (Auto-generated) Based on frontmatter's "key" and "name" -->

## MM-T5597: User with System Manager or User manager role and edit access to user management can Manage User settings

---

**Step 1**

### Scenario: Users with roles `System manager` or `User manager` or `Viewer` can see the `Manage User Settings` option on a instance with Enterprise license.

---

**Step 2**

1. Log into the admin account and go to System Console > System Roles page.
2. Edit permissions for `System manager`.
3. Under User Management, change the access settings from `No access` to `Can edit`.
4. Add `User A` to this role.
5. Log out from the admin account and log into User A's account.
6. Go to System Console > Users page.
7. Search for User B.
8. In the Actions Menu, verify that `Manage User Settings` is visible.
9. Click on the `Manage User Settings` option.
10. Verify that a confirmation pop-up with the title `Manage User B's Settings` appears.
11. Click on the `Manage User Settings` button.
12. Verify that User B's settings modal is displayed.
13. Verify the modal has a label `Admin mode`.
2 changes: 1 addition & 1 deletion data/test-cases/zephyr-reflect-ai-testing/MM-T5594.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ key: MM-T5594
created_on: "2024-06-25T10:43:48Z"
last_updated: ""
case_hashed: b75324c979bfaf63054247e4dd32c1fe7db35309947c479a11db9425cdd49bfafcd1c79290496b1edd236fcbdaa86b8f
steps_hashed: 1701d7008c270f6fd9ec739bd5091e3fc6ae1d9655a05edfe3506edaeddca764555c27ab58b7a42556534c66d892f208
steps_hashed: 63de7a41c1af93110bddf801e10fd3ab8d6966b47b915ba24fbc1650863e83171c16021f62e16983820419877c13f057
---

<!-- (Auto-generated) Based on frontmatter's "key" and "name" -->
Expand Down
Loading

0 comments on commit 5d875e2

Please sign in to comment.