StreetCode icon indicating copy to clipboard operation
StreetCode copied to clipboard

[Bug][Admin/Main street code block][API] Admin has ability to delete mandatory field during creating new "History-код".

Open Viacheslav-QC opened this issue 7 months ago • 0 comments

Environment: Windows 10 Home version 22H2, Google Chrome version 134.0.6998.89 (64) Reproducible: Always Build found: release 1.2.3 / 372d66c

Preconditions

  1. Open Postman and login as Admin;
  2. Create new unique image and get it ID for future "History-код";
  3. Add request in Postman with next endpoint: "POST: https://backend.historycode.online/api/Streetcode/Create"
  4. Execute the TC # 2668 and get request body;

Steps to reproduce

  1. Open the request body and delete the line with value:
  • "eventStartOrPersonBirthDate": "1997-07-01". Image
  1. Execute the request.

Actual result 400 - OK.

Expected result Get: 400 Bad Request and message: "Поле "День народження" або "Дата подіїї" не може бути пустим".

Postconditions Delete history-код та images which were created by Admin.

User story and test case links #115

Labels to be added "Bug", Priority ("pri: "), Severity ("severity:"), Type ("UI, "Functional"), "API" (for back-end bugs).

Viacheslav-QC avatar Apr 14 '25 15:04 Viacheslav-QC