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

[MM-41] : Added the test cases for the todo list generated message. #26

Merged
merged 7 commits into from
Jan 16, 2024
77 changes: 77 additions & 0 deletions data/test-cases/plugins/github/general/todo_list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
---
# (Required) Ensure all values are filled up
name: "Todo list in the channel or DM/GM using the `/github todo` command."
status: Active
priority: Normal
folder: General
authors: "@arush-vashishtha"
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. Connect your github account to MM and create a subsciption for any desired event discussion, issue, pulls, etc;
arush-vashishtha marked this conversation as resolved.
Show resolved Hide resolved
2. Create the desirec event on the connected github repo/organization.
arush-vashishtha marked this conversation as resolved.
Show resolved Hide resolved
arush-vashishtha marked this conversation as resolved.
Show resolved Hide resolved
3. Enter the `/github todo` command in any desired channel or DM/GM on MM.
arush-vashishtha marked this conversation as resolved.
Show resolved Hide resolved

**Step 2**

1. After step 1, close the created event on the connected account on github.
2. Run the `/github todo` command again in any desired channel or DM/GM on MM.

**Step 3**

1. Merge any desiered open PR on the connected account on github.
2. Enter the `/github todo` command in any desired channel or DM/GM on MM.

**Step 4**

1. Read any desired unread message on the connected account on github.
2. Enter the `/github todo` command in any desired channel or DM/GM on MM.

**Step 5**

1. Approve any desired pending requested review on the connected account on github.
2. Enter the `/github todo` command in any desired channel or DM/GM on MM.

**Step 6**

1. Click on the desired `owner` or `organisation` hyperlink part of the generated list on MM.

**Step 7**

1. Click on the desired <description> hyperlink part of the generated list on MM.

**Expected**

The generated message should show the list for unread messages, review requests, open PRs and user's assignments with the formats, `owner or organisation/repo <event> : <description>` or `owner or organisation/repo : <description>` in the desired channel or DM/GM on MM.
After step 2, the generated message should not show the closed events in the desired channel or DM/GM on MM.
After step 3, the desired PR should not be visible in the generated message in the desired channel or DM/GM on MM.
After step 4, the desired message should not be visible in the generated message in the desired channel or DM/GM on MM.
After step 5, the desired pending request should not be visible in the generated in the desired channel or DM/GM on MM.
After step 6, the user should be redirected to the desired owner account or organisation on github respectively.
After step 7, the user should be redirected to the desired event on github.