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 when trying to remove reaction which hasn't been given yet #52

Open
yanaaleeva opened this issue Jun 27, 2022 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@yanaaleeva
Copy link

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 not 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
Send POST request to http://qa-school-test.quantori.academy/api/v1/courses/1/like/remove

Actual behavior

Response code 200
Json body :{
"result": "You've removed your like/dislike from the course"
}

Expected behavior

Response code 400
Error message: "You've not previously left a reaction for this course"

image

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