Feature Name: Endorse Post Purpose: This feature enables TAs and professors to endorse posts, notifying all viewers that the content has been approved or supported by a professor or TA. It offers students a clear and reliable indicator of posts containing verified, legitimate information that they should prioritize reading. Coder: Evelynn Chen, Vicky Chen, and Alice Le
Step 1: Sign into an authorized account (Professor or TA account) Step 2: Enter and click into a published post Step 3: Click on the Endorse button
The endorse button on the post will no longer be available until someone unendorses the post by clicking on unendorse (TA or Professor only) Some sort of visual tag will appear on the post showing a TA or Professor has endorsed this post
Location: test/posts.js, lines 135-165
- Tested Features: The API for toggling the endorsed field for a Post.
- Test Type: Unit tests / back-end tests.
- Coverage Justification: The tests cover all use cases of toggling the boolean field endorsed. By default, a post is not endorsed, and only one request to endorse/unendorse at a time should be processed.