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

Added test cases for critical PRs of Jira release 4.0.0 #112

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all 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
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
# (Required) Ensure all values are filled up
name: "OAuth setup for Jira plugin"
status: Active
priority: Normal
folder: Install and Uninstall
authors: "@AayushChaudhary0001"
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. Run the `/jira connect` command.
2. Run the `/jira instance install cloud-oauth <cloud_jira_URL>`
3. Continue the steps provided in the direct message from Jira bot and complete the setup of cloud O-Auth 2.0.

**Expected**

The user should be able to complete and install the Jira cloud instance.
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
# (Required) Ensure all values are filled up
name: "Disconnect button for user"
status: Active
priority: Normal
folder: Jira Connect
authors: "@AayushChaudhary0001"
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. Run the `/jira connect` command and connect the user.
2. On the connection confirmation page, click on the disconnect button.

**Expected**

The user should be able to disconnect from the Jira instance.
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
# (Required) Ensure all values are filled up
name: "Comment notification for the user"
status: Active
priority: Normal
folder: Jira subscriptions
authors: "@AayushChaudhary0001"
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. Create a subscription on MM for desired project in Jira.
2. Go to the connected Jira instance.
3. Open the subscribed Jira board.
4. Perform any activity(for eg. add any comment) on the desired issue for which the subscription is already created.
5. Go back to the channel in MM.

**Expected**

The user should get the comment notification in the channel through the Jira bot.

Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
# (Required) Ensure all values are filled up
name: "Mention comment notification in DM"
status: Active
priority: Normal
folder: Jira subscriptions
authors: "@AayushChaudhary0001"
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. Go to the connected Jira instance.
2. Open the desired ticket on Jira board.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On this point, to prevent a false positive I would add a step that says "Ensure the test user desired user is not the assignee on the ticket"

Assignee get DMs for any comment so we should ensure the user is explicitly not seeing this DM.

3. Mention the desired user in the comments.
4. Go back to the connected MM server.


**Expected**

The user should get the comment notification in the DM through the Jira bot.
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
# (Required) Ensure all values are filled up
name: "Mention comment notification in DM if username contains @"
status: Active
priority:
folder: Jira subscriptions
authors: "@AayushChaudhary0001"
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. Go to the connected Jira instance.
2. Open the desired ticket on Jira board.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above ☝️

3. Mention the desired user whose username contains "@" in the comments.
4. Go back to the connected MM server.

**Expected**

The user should get the comment notification in the DM through the Jira bot.