An incorrect error message in the Representative's phone number field appears when an incorrect number of characters is entered. The cursor in the mask is not in the right place.
Steps to reproduce:
The user is on the Контактна інформація / Contact Information section of the registration form.
Enter fewer than 9 digits in the phone number field (e.g., 6712345).
Actual results:
An error message appears: "Неправильно набраний номер"
The cursor in the mask stands at the beginning of the field and prompts the user to enter +38 (0__
Expected results:
An error message appears: ""Будь ласка, введіть 9 цифр".
The cursor in the mask stands after the country code so that the user enters 9 digits.
Environment Desktop:
OS: macOS Sonoma 14.5 Browser: Safari Version 17.5
Pre-conditions:
https://chari-erp-dev-5jqgv.ondigitalocean.app/sign-up - page is opened
https://github.com/it-volunteers-ukraine/ChariERP/milestone/5
Description:
An incorrect error message in the Representative's phone number field appears when an incorrect number of characters is entered. The cursor in the mask is not in the right place.
Steps to reproduce:
Actual results:
An error message appears: "Неправильно набраний номер" The cursor in the mask stands at the beginning of the field and prompts the user to enter +38 (0__
Expected results: An error message appears: ""Будь ласка, введіть 9 цифр". The cursor in the mask stands after the country code so that the user enters 9 digits.
Screenshots: