-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from CMU-313/savannahxunc/add-tests
Added automated tests for quick anonymous reply feature
- Loading branch information
Showing
2 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# All Features | ||
## Feature 1: Endorse By Staff Feature | ||
|
||
## Feature 2: Quick Anonymous Reply | ||
### How to use? | ||
[**This video shows how to use this feature!**](https://github.com/user-attachments/assets/6fd3c1cb-006e-4dc0-a449-10fb6a254b44) | ||
|
||
### How to test? | ||
This feature is triggered by the UI when the user clicks on the "**Anonymous Reply**" button. We are not doing UI level automated testing, rather we are testing the backend. Next time, we use tools, like Puppeteer, that can implement UI automated tests. | ||
|
||
To test backend: | ||
**We added a test case in `test/topics.js` (line starting from 271)** | ||
|
||
**Why we believe this works:** | ||
Anonymous reply only required one extra backend parameter (**handle == 1**), and we tested exactly for that condition. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters