StreetCode icon indicating copy to clipboard operation
StreetCode copied to clipboard

[API][Admin/Вакансії] The vacancy is created when the title and/or description fields are filled with more than allowed number of symbols

Open BDaria opened this issue 1 year ago • 3 comments
trafficstars

Environment: Windows 10 Pro, Chrome, 122.0.6261.112, (64 bit) Reproducible: always Build found: aafbfbc

Preconditions

  1. The symbols limit in the "title" field is expected 50.
  2. The symbols limit in the "description" field is expected 2000.
  3. Open Postman.

Steps to reproduce

  1. Create a Job using the Post request.
  2. Fill in the "title" field with 51 or more symbols.
  3. Fill in the "description" field with 2001 or more symbols.
  4. Fill in the "salary" field with valid information.
  5. Send a request.

Actual result

  1. The Job is created with the symbols limit exceeded in the "title" and "description" fields. Response 200 ok.
symb

Expected result The job with the symbols limit exceeded in the "title" and "description" fields is not created. Response 400. Bad request.

User story and test case links User story #836 Test case #1102 #1054

BDaria avatar Mar 23 '24 12:03 BDaria