Skip to content

Commit

Permalink
test(insight, ad-ldap and user groups): added test cases (#19)
Browse files Browse the repository at this point in the history
* test(insight, ad-ldap and user groups) added test cases

* fixed comments

* test case renamed

* update chanhes
  • Loading branch information
Furqan Malik authored Nov 25, 2022
1 parent f18ae31 commit 87a4dd4
Show file tree
Hide file tree
Showing 5 changed files with 271 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
# (Required) Ensure all values are filled up
name: "My Insights license change"
status: Active
priority: Normal
folder: Insights
authors: "@furqanmlk"
team_ownership:
- Suite Users

# (Optional)
priority_p1_to_p4: P2 - Core Functions (Do core functions work?)
location: activity-and-insights
component: null
tags: []
labels:

# (Optional) Test type and tools
cypress: To Do
detox: null
mmctl: null
playwright: null
rainforest: []
manual_test_environments:
- Webapp

# Do not change
id: null
key: null
created_on: null
last_updated: null
case_hashed: null
steps_hashed: null
---

**Step 1**

Ref: <https://mattermost.atlassian.net/browse/MM-47145>

Steps:

1. Login as **SysAdmin**.
2. Add starter license.
3. Click **insights** from LHS.

**Expected**

step 3: insights should be displayed.
50 changes: 50 additions & 0 deletions data/test-cases/suite/ad-ldap/MM-test-case-1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
# (Required) Ensure all values are filled up
name: "Allow admins to re-add a user to all of their default group-teams and channels"
status: Active
priority: Normal
folder: AD LDAP
authors: "@furqanmlk"
team_ownership:
- Suite Users

# (Optional)
priority_p1_to_p4: P2 - Core Functions (Do core functions work?)
location: suite
component: null
tags: []
labels:

# (Optional) Test type and tools
cypress: To Do
detox: null
mmctl: null
playwright: null
rainforest: []
manual_test_environments:
- Webapp

# Do not change
id: null
key: null
created_on: null
last_updated: null
case_hashed: null
steps_hashed: null
---

**Step 1**

Ref: <https://mattermost.atlassian.net/browse/MM-48186>

Steps:

1. Login as two LDAP users (userA and userB) in an LDAP group.
2. Configure the group to sync to a team and a channel.
3. Have both users leave the channel and the team.
4. Go to **System Console** > **Users**, go to **userA**, and from the drop down menu select **Reset group-defaulted teams and channels**.

**Expected**

step 2: the users should get added to the team and then channel.
step 4: **userA** should be re-added to the team and the channel and **userB** should not get re-added to the team or the channel.
51 changes: 51 additions & 0 deletions data/test-cases/suite/enterprise/user-groups/MM-Test-Case-1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
# (Required) Ensure all values are filled up
name: "Add max height and overflow to Multiselect"
status: Active
priority: Normal
folder: user-groups
authors: "@furqanmlk"
team_ownership:
- Suite Users

# (Optional)
priority_p1_to_p4: P2 - Core Functions (Do core functions work?)
location: enterprise
component: null
tags: []
labels:

# (Optional) Test type and tools
cypress: To Do
detox: null
mmctl: null
playwright: null
rainforest: []
manual_test_environments:
- Webapp

# Do not change
id: null
key: null
created_on: null
last_updated: null
case_hashed: null
steps_hashed: null
---

**Step 1**

Ref: <https://mattermost.atlassian.net/browse/MM-41906>

Steps:

1. Login as **SysAdmin**.
2. Create 10 users.
3. Click **+** icon on LHS.
4. Click on **Create New User Groups**.
5. Type **Name** in Create Group modal.
6. Add 10 users.

**Expected**

step 6: Scroll bar should be visible.
69 changes: 69 additions & 0 deletions data/test-cases/suite/enterprise/user-groups/MM-Test-Case-2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
---
# (Required) Ensure all values are filled up
name: "Verify popover for user groups"
status: Active
priority: Normal
folder: user-groups
authors: "@furqanmlk"
team_ownership:
- Suite Users

# (Optional)
priority_p1_to_p4: P2 - Core Functions (Do core functions work?)
location: enterprise
component: null
tags: []
labels:

# (Optional) Test type and tools
cypress: To Do
detox: null
mmctl: null
playwright: null
rainforest: []
manual_test_environments:
- Webapp

# Do not change
id: null
key: null
created_on: null
last_updated: null
case_hashed: null
steps_hashed: null
---

**Step 1**

Ref: <https://mattermost.atlassian.net/browse/MM-44347>

Steps:

1. Login as **SysAdmin**.
2. Create a channel **ChannelA**.
3. Create 10 users.
4. Add 10 users in **ChannelA**.
5. Click **+** icon on LHS.
6. Click on **Create New User Groups**.
7. Type **Name** in Create Group modal.
8. Add 10 users.
9. Click **Create Group** button.
10. Go to **ChannelA**.
11. Type Group mention and press **enter**.
12. Click group mention.
13. Click group header.
14. Close group model.
15. Click group mention again and select any user.

**Expected**

step 10: Following results should be displayed:

- User groups popover should be displayed.
- Group name should be displayed on group name header.
- **X** icon should be displayed next to group name header.
- Group mention and total number of group members should be displayed under the group name header.
- Search textbox should be displayed.
- List of all group members should be displayed.
step 11: group modal should be displayed.
step 13: profile popover of selected user should be displayed.
53 changes: 53 additions & 0 deletions data/test-cases/suite/enterprise/user-groups/MM-Test-Case-3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
# (Required) Ensure all values are filled up
name: "Allowing special characters in group name"
status: Active
priority: Normal
folder: user-groups
authors: "@furqanmlk"
team_ownership:
- Suite Users

# (Optional)
priority_p1_to_p4: P2 - Core Functions (Do core functions work?)
location: enterprise
component: null
tags: []
labels:

# (Optional) Test type and tools
cypress: To Do
detox: null
mmctl: null
playwright: null
rainforest: []
manual_test_environments:
- Webapp

# Do not change
id: null
key: null
created_on: null
last_updated: null
case_hashed: null
steps_hashed: null
---

**Step 1**

Ref: <https://mattermost.atlassian.net/browse/MM-46112>

Steps:

1. Login as **SysAdmin**.
2. Create 2 users.
3. Click **+** icon on LHS.
4. Click on **Create New User Groups**.
5. Type **Name** "test-group" in Create Group modal.
6. Add 2 users.
7. Click Create Group button.

**Expected**

step 5: "test-group" should be visible in **Mention**.
step 7: Group should be created.

0 comments on commit 87a4dd4

Please sign in to comment.