Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yasserfaraazkhan committed Sep 25, 2024
1 parent f6cd259 commit ce04087
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 18 deletions.
4 changes: 2 additions & 2 deletions data/test-by-folder.json
Original file line number Diff line number Diff line change
Expand Up @@ -3198,10 +3198,10 @@
{
"folder": "mobile-v2/drafts",
"tests": [
"Cannot view Drafts created on the Desktop or Browser",
"Create drafts on mobile app",
"Delete drafts on mobile app",
"Edit Drafts on mobile app",
"View Drafts created on the Desktop or Browser"
"Edit Drafts on mobile app"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
# (Required) Ensure all values are filled up
name: "View Drafts created on the Desktop or Browser"
name: "Cannot view Drafts created on the Desktop or Browser"
status: Active
priority: Normal
folder: Drafts
Expand Down Expand Up @@ -35,34 +35,23 @@ steps_hashed: null

**Step 1**

### Scenario 1: Able to see drafts created on the desktop
### Scenario 1: Not able to see drafts created on the desktop

Steps:

1. Log into user's account on a Desktop app.
2. Go to any DM/GM/Channel and type a message (with or without attachments) but dont send it.
3. Log into user's account on a Mobile device.
4. Verify the draft option is shown.
5. Verify the count of the draft messages is shown.
6. Click on Drafts.
7. Verify the typed message is shown.
8. Verify the Draft message has information of `To:` DM/GM/Channel.
4. Verify the draft created on desktop is not visible.

### Scenario 2: Able to see drafts created on the Browser
### Scenario 2: Not able to see drafts created on the Browser

Steps:

1. Log into user's account on a Browser.
2. Go to any DM/GM/Channel and type a message but dont send it.
3. Log into user's account on a Mobile device.
4. Verify the draft option is shown.
5. Verify the count of the draft messages is shown.
6. Click on Drafts.
7. Verify the typed message is shown.
8. Verify the Draft message has information of `To:` DM/GM/Channel.
9. Send the Draft message from mobile drafts page.
10. Verify on Browser the Draft page does not show the message anymore.
11. Verify on Browser the count of draft messages is updated correctly.
4. Verify the draft created on Browser is not visible.

### Scenario 3: Able to scroll through the long list of drafts on the mobile

Expand Down

0 comments on commit ce04087

Please sign in to comment.