kat-kan / kawqa-gad-playwright

4 stars 1 forks source link

PATCH/ comments - add more test cases #89

Closed Justyna-KO closed 5 months ago

Justyna-KO commented 7 months ago

Completing patch-comments tests with other possible API answers for this endpoint, listed in the GAD application documentation.

✏️ Description

-add test: 401Unauthorized -> when invalid token is sent in headers

-add test: 400 Bad Request -> when malformed json is used

-add test: 422 Unprocessable Entity -> when keys are missing and values are too long

-add test 404 Comment not found