ita-social-projects / StreetCode

MIT License
19 stars 9 forks source link

[API] [Admin/News] is created and updated with empty fields: title, text #1118

Open DariaAntonenko opened 10 months ago

DariaAntonenko commented 10 months ago

Environment: OS, Windows 11 . Browser: Google Chrome Version 114.0.5735.135. Browser: Google Chrome Version 114.0.5735.135. Reproducible: always Build found: https://github.com/ita-social-projects/StreetCode/commit/d600e2645d9ccf17f6da55c013f00b9705b059d5

Preconditions

  1. Open postman

Steps to reproduce

  1. Make a request to create news
  2. Leave the fields: title, text empty
  3. Send a request
  4. Do the same only with update the news

Actual result News is created and updated with empty fields: title, text. !!!!!Still can be updated with empty title and text!!!!

Screenshot_54 Screenshot_56 Screenshot_55

Expected result News is not created and is not updated with empty fields: title, text. These fields are mandatory.

User story and test case links E.g.: "User story #835

Labels to be added "Bug", Priority ("pri: hight"), Severity ("severity: hight"), Type ( "Functional"), "API"

ChornaOksana commented 7 months ago

News can`t be created with empty Title and text fields. But News can be updated with empty title and field

image

image