You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pre-conditions
There exists student role user with valid credentials, user is logged in and Bearer Token "Student Token" is generated
There exists Course Category and course with CourseId="1"
User has previously put reaction (like or dislike) to the course Steps to reproduce
In Postman collection click "Add request"
Name request, e.g. "Repeated reaction"
in Auth Tab choose Bearer Token from droplist, and type in "StudentToken" into text field
In Body tab choose "raw" and "json" from droplists respectively.
Send POST request to http://qa-school-test.quantori.academy/api/v1/courses/1/like/yes (http://qa-school-test.quantori.academy/api/v1/courses/1/like/no respectively)
Actual behavior
Response code 200
Json body :{
"result": "You've liked the course"
}
Expected behavior
Response code 400
Error message: "You have previously liked/disliked the course"
Screenshots
The text was updated successfully, but these errors were encountered:
yanaaleeva
changed the title
Error message when user repeats like/dislike
No error message when user repeats like/dislike
Jun 27, 2022
Hello @viraxslot I'd suggest #51 and #52 are up to BA what he/she requires as this is a minor bug, which still allows user to keep/remove reaction and doesn't affect the count.
Pre-conditions
There exists student role user with valid credentials, user is logged in and Bearer Token "Student Token" is generated
There exists Course Category and course with CourseId="1"
User has previously put reaction (like or dislike) to the course
Steps to reproduce
In Postman collection click "Add request"
Name request, e.g. "Repeated reaction"
in Auth Tab choose Bearer Token from droplist, and type in "StudentToken" into text field
In Body tab choose "raw" and "json" from droplists respectively.
Send POST request to http://qa-school-test.quantori.academy/api/v1/courses/1/like/yes (http://qa-school-test.quantori.academy/api/v1/courses/1/like/no respectively)
Actual behavior
Response code 200
Json body :{
"result": "You've liked the course"
}
Expected behavior
Response code 400
Error message: "You have previously liked/disliked the course"
Screenshots
![image](https://user-images.githubusercontent.com/105941331/175955044-58f87815-43b5-4e40-bfd8-3c3e8a49658e.png)
The text was updated successfully, but these errors were encountered: