lucasblanchard14 / zuccstagram

SOEN341 Team Project
0 stars 0 forks source link

As a user, I want to see comments on a particular post and comment on it myself #8

Open lucasblanchard14 opened 4 years ago

lucasblanchard14 commented 4 years ago

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

  1. From the Detailed Post page, I click the comment button found on the bottom right of the image
  2. An alert dialog appears with an area for me to input text
  3. I enter my comment and press "OK"
  4. 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.

lucasblanchard14 commented 4 years ago

The comment feature is fully implemented