-
Notifications
You must be signed in to change notification settings - Fork 77
Description
Feature: Commenting on posts
Context: Commenting on a post (question or answer) provides users with a space to evolve the conversation about the post without posting an explicit answer. A comment can help both the poster and a viewer. Every insight provided on a post cannot be an answer as an insight can be meta, as in about the post itself rather than an answer to the post. A comment also helps a viewer gather more context about the post, more than what the OP provided initially. A comment isn’t an answer, rather a suggestion or improvement about the post itself or used to ask for more information from the OP.
Description: As a registered user on the website I want to be able to post a comment on a post
Acceptance Criteria
Scenario 1: Successfully seeing comments
Given a user (logged in or not) clicks on a post
When they view the post
Then they should be able to see the comments on the post
Scenario 2: Successfully posting a comment
Given a logged in user is viewing a post and they write a valid comment
When they try to post the comment
Then the comment should be posted on the post and the user should see their comment
Scenario 3: Unsuccessfully posting a comment due to user not being logged in
Given a user that is not logged in is viewing a post
When they try to write a comment
Then they should not be able to comment on the post and they should be prompted to log in
Scenario 4: Unsuccessfully posting a comment due to invalid comment
Given a user that is logged in is viewing a post and writes a comment that is less than 15 characters long
When they try to post the comment
Then they should not be able to post the comment and an error message should be displayed
Scenario 5: Unsuccessfully posting a comment due to invalid comment
Given a user that is logged in is viewing a post and writes a comment that is more than 400 characters long
When they try to post the comment
Then they should not be able to post the comment and an error message should be displayed