amqkv / SOEN-341

0 stars 0 forks source link

As a user, I would like to be able to follow other users #33

Closed amqkv closed 3 years ago

amqkv commented 3 years ago

Description: As a user, I would like to visit another user's profile and have a button to follow them.

Steps: -Create user profile template -Implement follow/unfollow feature -Make the feed only display followed users' content

silentswordxv commented 3 years ago

Acceptance criteria: (for now) have the feature work as intended -> follow/unfollow is reflected in DB after change. For follow/unfollow: Script could be:

Have 3 dummy users A B and C. Initially have A follow B. C has no relation with either. Check if A is following B -> should be true. Check if C is follow B -> should be false Make C follow A. Then check if A is being followed by C -> should be true Make C unfollow A. Then check if C follows A. -> should be false IMPORTANT: no matter how the script goes, the last operations should come back to initial state: A follows B and C has no relation.

Note: add some return statements to handleFollow for tests

amqkv commented 3 years ago

Acceptance test #53 image

silentswordxv commented 3 years ago

Implemented.