### Description Links to related user stories and pull requests: User story: #16 Pull Requests: #24, #42 , #57 , #74 **Automated Testing** our tests were added in the following PRs and files: - in #57 , test/topics/resolved.js - in #74 , test/topics/resolved_count.js These tests test the APIs, which call our functions. They are sufficient for the acceptance criteria outlined in tasks: - #11 (When a student creates new post, it is defaulted to say unresolved), - #36 (only course staff can change unresolved state to resolved), - #52 (The function can be called and returns the correct amount of unresolved posts.) We did not add automated tests for the frontend, because they are seen clearly when we start the server. The acceptance criteria is listed below: - #12: The number of unresolved posts in each channel will be displayed on the home screen. This is tested in the front end. **Manual Testing** *note screenshots might differ slightly because of posts added locally) 1. Run ./nodebb setup 2. Run npm install 3. Run ./nodebb dev 4. Log in as admin using username=admin and password=password123!. <img width="1512" height="857" alt="Image" src="https://github.com/user-attachments/assets/b3c41931-4d3a-49c5-b16c-8da88c1b5e6a" /> 5. Navigate to the home page. <img width="1512" height="857" alt="Image" src="https://github.com/user-attachments/assets/83f41228-44d9-4cc2-bf40-074f86cb2334" /> 6. Click into a category (eg. general discussion) <img width="1512" height="857" alt="Image" src="https://github.com/user-attachments/assets/98bec8ba-8c8e-4d69-935a-7566cc8ffda1" /> 7. Create a new topic post <img width="1512" height="857" alt="Image" src="https://github.com/user-attachments/assets/5a9dbc04-4564-465a-8d11-71358478882c" /> 8. Observe that the checkbox is unchecked and the topic is marked as unresolved. <img width="1512" height="857" alt="Image" src="https://github.com/user-attachments/assets/2c6d74e1-36e7-405f-bb88-a6cd00f2e681" /> 9. Navigate to the home page, and observe that the number of unresolved posts increased by one. <img width="1512" height="857" alt="Image" src="https://github.com/user-attachments/assets/454d9b89-0070-40b8-bb28-3e9ad392ea0d" /> 10. Navigate back to the topic you just created. Check the box and observe that the post changes to resolved. <img width="1512" height="857" alt="Image" src="https://github.com/user-attachments/assets/7506e731-3ad1-4515-9a2f-0ca07d92d326" /> 11. Navigate away from the topic and back to the topic. Observe that the topic remains resolved. <img width="1512" height="857" alt="Image" src="https://github.com/user-attachments/assets/4f6f3ca0-f82f-4bcd-bde8-94f0fbcb6b3f" /> 12. Navigate back to the home page. Observe that the unresolved count decreased by one. <img width="1512" height="857" alt="Image" src="https://github.com/user-attachments/assets/e6bcb2b8-7306-4f52-8ef1-8dfabaf7a401" /> ### Community forum reference _No response_
Description
Links to related user stories and pull requests:
User story: #16
Pull Requests: #24, #42 , #57 , #74
Automated Testing
our tests were added in the following PRs and files:
These tests test the APIs, which call our functions. They are sufficient for the acceptance criteria outlined in tasks:
We did not add automated tests for the frontend, because they are seen clearly when we start the server. The acceptance criteria is listed below:
Manual Testing
*note screenshots might differ slightly because of posts added locally)
Community forum reference
No response