Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yasserfaraazkhan committed Jul 11, 2024
1 parent 80556ce commit a8a8ae9
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 23 deletions.
7 changes: 7 additions & 0 deletions 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
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,43 @@ steps_hashed: null
### Scenario: Admin cannot see the `Manage User Settings` option on a Free edition.

**Steps:**

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 can see the `Manage User Settings` option on a Professional/Enterprise edition.
### Scenario: Admin cannot see the `Manage User Settings` option on a instance with Professional license.

**Steps:**

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.

**Steps:**

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.

**Steps:**

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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,31 +35,10 @@ steps_hashed: null

**Step 1**

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

**Steps:**
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 can see the `Manage User Settings` option on a Professional/Enterprise edition.

**Steps:**
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`.


### Scenario: Users with roles `System manager` or `User manager` can see the `Manage User Settings` option on a Professional/Enterprise edition.

**Steps:**
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`.
Expand Down

0 comments on commit a8a8ae9

Please sign in to comment.