Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(MM-54404): Add e2e tests for gif picker #111

Merged
merged 5 commits into from
Sep 12, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions data/test-cases/channels/gif-picker/insert-key1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
# (Required) Ensure all values are filled up
name: "Change Test Title"
M-ZubairAhmed marked this conversation as resolved.
Show resolved Hide resolved
status: Active
priority: Normal
folder: Gif picker
authors: "@m-zubairahmed"
team_ownership:
- ICU
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: in Production
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**

Searching for and inserting a GIF from the GIF picker into a post in the center:
1. If the GIF picker is not enabled, enable it from the System Console.
2. Open a channel and click on the Emoji picker icon within the message text box in the center.
3. Navigate to the GIF picker tab.
4. Perform a search for a GIF.
5. Click on the any GIF.

**Expected Results:**
1. The GIF picker search should display relevant GIFs.
2. When clicked, the selected GIF should be inserted into the post in the center.
49 changes: 49 additions & 0 deletions data/test-cases/channels/gif-picker/insert-key2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
# (Required) Ensure all values are filled up
name: "Change Test Title"
status: Active
priority: Normal
folder: Gif picker
authors: "@m-zubairahmed"
team_ownership:
- ICU
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: in Production
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**

Searching for and inserting a GIF from the GIF picker into a post on the RHS:
1. If the GIF picker is not enabled, enable it from the System Console.
1. Open a channel and send a message.
1. Click the "Reply" button on the last message to open the RHS.
1. Click on the Emoji picker icon located within the message text box in the RHS.
1. Navigate to the GIF picker tab.
1. Perform a search for a GIF.
1. Click on any GIF.

**Expected Results:**
1. The GIF picker search should display relevant GIFs.
1. When clicked, the selected GIF should be inserted into the post on the RHS.
1 change: 1 addition & 0 deletions src/util/test_case.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ function customFieldsValues() {
'Suite Users',
'Server Platform',
'Web Platform',
'ICU'
],
};

Expand Down