Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No error message when user repeats like/dislike #51

Open
yanaaleeva opened this issue Jun 27, 2022 · 1 comment
Open

No error message when user repeats like/dislike #51

yanaaleeva opened this issue Jun 27, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@yanaaleeva
Copy link

yanaaleeva commented Jun 27, 2022

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

@yanaaleeva yanaaleeva changed the title Error message when user repeats like/dislike No error message when user repeats like/dislike Jun 27, 2022
@yanaaleeva
Copy link
Author

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.

@viraxslot viraxslot added the enhancement New feature or request label Jun 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants