Description:
A user can click on a thumbnail from the image grid on someone's profile page. This will bring them to the detailed post page that displays
a larger more detailed image, information about the post and comments on the post. Users can view existing comments on the post and add a new comment
by clicking the comment button
Points: 5/10 (core feature)
Risk: 5/10 (closely tied to CF1 because all comments must be linked to their relevant posts, making it a critical feature)
Priority: 5/10
ACCEPTANCE TEST
User Story
Comment on Posts
Acceptance Criteria
From the Detailed Post page, I click the comment button found on the bottom right of the image
An alert dialog appears with an area for me to input text
I enter my comment and press "OK"
the alert dialog closes and my comment is successfully displayed at the top of the list of comments for any other user to see.
Result
Comment is posted to the detailed post page of the particular image for any user to view. The comment is saved on the page and will stay displayed there if the user visits the page again. The author of the image is notified of the new comment.
TEST 1
GIVEN
I clicked the comment button on a detailed post
WHEN
I leave my comment empty and click OK
THEN
the button is disabled until I typed in a comment with text; empty comments cannot be posted
TEST 2
GIVEN
I clicked the comment button on a detailed post
WHEN
I enter a spacebar one or multiple times in a row and click OK, leaving a blank comment
THEN
the button is disabled until I typed in a comment with text; empty comments cannot be posted
TEST 3
GIVEN
I clicked the comment button on a detailed post
WHEN
I enter a comment with text then click OK
THEN
The comment I typed is now posted on the detailed page of the image under the picture description.
Description: A user can click on a thumbnail from the image grid on someone's profile page. This will bring them to the detailed post page that displays a larger more detailed image, information about the post and comments on the post. Users can view existing comments on the post and add a new comment by clicking the comment button
Points: 5/10 (core feature)
Risk: 5/10 (closely tied to CF1 because all comments must be linked to their relevant posts, making it a critical feature)
Priority: 5/10
ACCEPTANCE TEST
User Story Comment on Posts
Acceptance Criteria
Result Comment is posted to the detailed post page of the particular image for any user to view. The comment is saved on the page and will stay displayed there if the user visits the page again. The author of the image is notified of the new comment.
TEST 1
GIVEN I clicked the comment button on a detailed post WHEN I leave my comment empty and click OK THEN the button is disabled until I typed in a comment with text; empty comments cannot be posted
TEST 2
GIVEN I clicked the comment button on a detailed post WHEN I enter a spacebar one or multiple times in a row and click OK, leaving a blank comment THEN the button is disabled until I typed in a comment with text; empty comments cannot be posted
TEST 3
GIVEN I clicked the comment button on a detailed post WHEN I enter a comment with text then click OK THEN The comment I typed is now posted on the detailed page of the image under the picture description.