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 extra check on API of TODO plugin #114

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
42 changes: 42 additions & 0 deletions data/test-cases/plugins/todo/API/Accept_issue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# (Required) Ensure all values are filled up
name: "Accept Todo"
status: Active
priority: Normal
folder: ToDo
Copy link
Collaborator

Choose a reason for hiding this comment

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

the folder name will be API.
Also, make the folder name in small case plugins/todo/api.

authors: "@AayushChaudhary0001"
team_ownership:
- Change Team Name
Copy link
Collaborator

Choose a reason for hiding this comment

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

@AayushChaudhary0001 , please add team name

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. Provide the authtoken(in postman) of the user to whom the Todo is assigned.
2. Provide the id(mandatory field) of the Todo from the list of the users to whom the ToDo is assigned.

**Expected**

The desired Todo should get accepted.
42 changes: 42 additions & 0 deletions data/test-cases/plugins/todo/API/Add_issue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# (Required) Ensure all values are filled up
name: "Add Todo"
status: Active
priority: Normal
folder: ToDo
authors: "@AayushChaudhary0001"
team_ownership:
- Change Team Name
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. Fill all the mandatory fields of the API body.
2. Provide the correct authtoken of the user(in postman).

**Expected**

The desired Todo should get created.
42 changes: 42 additions & 0 deletions data/test-cases/plugins/todo/API/Bump_issue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# (Required) Ensure all values are filled up
name: "Bump Todo"
status: Active
priority: Normal
folder: ToDo
authors: "@AayushChaudhary0001"
team_ownership:
- Change Team Name
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. Provide the authtoken(in postman) of the user to whom the Todo is assigned.
2. Provide the id(mandatory field) of the ToDo from the list of the user to whom the Todo is aasigned.

**Expected**

The desired Todo should get accepted.
42 changes: 42 additions & 0 deletions data/test-cases/plugins/todo/API/Complete_issue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# (Required) Ensure all values are filled up
name: "Complete Todo"
status: Active
priority: Normal
folder: ToDo
authors: "@AayushChaudhary0001"
team_ownership:
- Change Team Name
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. Provide the correct authtoken(in Postman) of the correct user.
2. Provide the correct id(mndatory field) of the Todo comment.

**Expected**

The ToDo comment should get completed and should not be visible in the Todo list afterwards.
42 changes: 42 additions & 0 deletions data/test-cases/plugins/todo/API/Delete_issue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# (Required) Ensure all values are filled up
name: "Delete Todo"
status: Active
priority: Normal
folder: ToDo
authors: "@AayushChaudhary0001"
team_ownership:
- Change Team Name
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. Provide the correct authtoken(in postman) of the user.
2. Fill the mandatory ID field correctly.

**Expected**

The desired ToDo should get deleted.
43 changes: 43 additions & 0 deletions data/test-cases/plugins/todo/API/Edit issue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# (Required) Ensure all values are filled up
name: "Edit Todo"
status: Active
priority: Normal
folder: ToDo
authors: "@AayushChaudhary0001"
team_ownership:
- Change Team Name
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. Provide the id(mandatory field) of the desired Todo.
2. Enter the desired changes in message and description field(mandatory fields).
3. Provide the correct authtoken(in postman) of the user.

**Expected**

The desired Todo should get created.
42 changes: 42 additions & 0 deletions data/test-cases/plugins/todo/API/Get_issue_list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# (Required) Ensure all values are filled up
name: "Get Todo list"
status: Active
priority: Normal
folder: ToDo
authors: "@AayushChaudhary0001"
team_ownership:
- Change Team Name
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. Provide the correct authtoken(in postman) of the user.
2. Select the params for the Todo list(in/out).

**Expected**

The Todo list should be presented to the user.
Loading