ita-social-projects / EventsExpress

MIT License
19 stars 16 forks source link

[Unit of measusing] The unit can be added when using the same unit name and short name #638

Open ivmariia opened 3 years ago

ivmariia commented 3 years ago

Date Time 06-08-2021 11:33

Priority Medium

Environment: OS: Windows 10 x64 Browser Google Chrome 91.0.4472.77 Reproducible: always Build found: 20210607.1

Pre-conditions User is logged in as admin (e.g. User - admin@gmail.com Password - 1qaz1qaz)

Steps to Reproduce

  1. Move to “Units of measuring” page
  2. Click on Admin in the menu on the left side
  3. Click on 'Add unit' button
  4. Add already existed unit (e.g. Unit name- blablabla Short name - bla)

Actual result

  1. A unit was added when admin enters already existed unit name and short name on the 'Unit of measuring' page.
  2. A validation message 'The same UNIT OF MEASURING and SHORT UNIT OF MEASURING already exists' appears near the 'Short name' edit box.
  3. A validation message 'Short name needs to vonsist only letters or letter(s)/letter(s)' appears unter the 'Short name' edit box Expected result A validation message 'Short name is already used' appears under the 'Short name' text box and 'Unit name is already used' appears under the 'Unit name' text box.

Screenshots 1. image 2. image 3. image

User story and test case links E.g.: "User story #347 Test case #635 "

Labels to be added "Bug", Priority Medium, Severity Major, Type Functional.

MaxYashan1899 commented 3 years ago

Moved the output of the message below. Not divided into separate messages, because this is one block of validation logic