18F / dol-whd-14c

The 14(c) system will become a modern, digital-first service. Applicants will be provided an intuitive online experience, guiding them through the information needed to complete their application correctly.
Other
16 stars 17 forks source link

Bug : when entering an incorrect date (e.g., 13/13/2017), the system will display different date after display error message. #741

Open binwang89 opened 6 years ago

binwang89 commented 6 years ago

Bug description: Screen / Page: Wage Data Field: date field Issue: when entering an incorrect date (e.g.,

Steps: Select the following:

Piece Rate Prevailing Rate Survey Add Source Employer Enter the following date: 13-13-2017 Save “Source Employer” Click ‘Next” Click Review & Submit Wage Data: select Edit Responses Source employer: click Edit System saved my date entry but displays a different date instead: 1-13-2017 Entered and saved this date (entered incorrect month): image.png After saving date, viewed if system displayed error message, but this is what system displayed (the Month was auto edited to display “1” (January) instead. image.png

Same issue happen to date field (Employer). system is automatically correcting the date field.

I entered the following date (incorrectly): 31-12-2016 whent back to the date field: the system auto displayed the following date instead: 3-31-2016

image

EStriegel commented 6 years ago

Let's scope out effort to add date control. @NathayaMDOL @mmurthydol

NathayaMDOL commented 6 years ago

This issue has been fixed and reviewed with Michelle. The behavior will be

  1. All field: Can enter number only
  2. Month: Can enter up to 12 maximum
  3. Day: Can enter up to a maximum of last day of that month
  4. Year: Can enter up to a maximum of the current year
  5. If you enter any field more than limit it will automatically adjust to a maximum Branch: "whd-aqa-741-nmankong-bug-date-field"