Tests - operation in Hive - Comment
Operation: comment_operation, // 1
Configuration:
HIVE_CASHOUT_WINDOW_SECONDS, default mainnet value: 7 days
Test cases
-
1. User creates a post.
Steps:
Step 1: User creates a post.
Expected results:
- After operation: The post is published.
- After operation: RC is reduced.
Test cases
-
2. User comments on the own post. -
3. User comments on the someone else's post.
Preconditions (test 2 and 3):
- There are users A and B
Steps (test 1 and 2):
Step 1: User A creates a post.
Expected results:
- After operation: The post is published.
- After operation: RC is reduced.
Steps:
(test 1) Step 2: User A comments on a post.
(test 2) Step 2: User B comments on a post.
Expected results:
- After operation: The comment is published correctly.
- After operation: RC is reduced.
Test cases
-
4. User modifies a post without comments. -
5. User modifies a comment without comments.
Preconditions (test 4 and 5):
- Test 4 - there is a post without comments.
- Test 5 - there is a comment without comments.
Steps:
Step 1: User changes {title}, {body} and {json_metadata}.
Expected results:
- After operation: The post/the comment is updated.
- After operation: RC is reduced.
Test cases
-
6. User modyfies a post with comments. -
7. User modyfies a comment with comments.
Preconditions (test 6 and 7):
- Test 6 - there is a post with comments.
- Test 7 - there is a comment with comments.
Steps:
Step 1: User changes {title}, {body} and {json_metadata}.
Expected results:
- After operation: The post/the comment is updated.
- After operation: RC is reduced.
Test cases
-
8. User modifies a post with comments, votes and downvotes. -
9. User modifies a comment with comments,votes and downvotes..
Preconditions (test 8 and 9):
- Test 8 - there is a post with comments, votes and downvotes.
- Test 9 - there is a comment with comments, votes and downvotes.
Steps:
Step 1: User changes {title}, {body} and {json_metadata}.
Expected results:
- After operation: The post/the comment is updated.
- The votes and downvotes are not changed.
- After operation: RC is reduced.
Test cases
-
10. User modifies a post with comments after paying out the post (after HIVE_CASHOUT_WINDOW_SECONDS
). -
11. User modifies a comment with comments after paying out the comment (after HIVE_CASHOUT_WINDOW_SECONDS
).
Preconditions (test 10 and 11):
- Test 10 - there is a post with comments and the post is paid out.
- Test 11 - there is a comment with comments and the comment is paid out.
Steps:
Step 1: User changes {title}, {body} and {json_metadata}.
Expected results:
- After operation: The post/the comment is updated.
- After operation: RC is reduced.
Edited by Radosław Masłowski