bcgov / foi-flow

Freedom of Information modernization
Apache License 2.0
5 stars 3 forks source link

Can type in a past date into Divisional Stage Due date input field and system allows to save #2116

Open abin-aot opened 2 years ago

abin-aot commented 2 years ago

Describe the bug in current situation As per the User store for Divisional stage due date(#1674) , system should not allow user to input an old or past due date. But within the current system, if user "type in" an old date, system accepts the past date to save. This behavior can happen with any other date picker with date selection restriction.

Note : From the date picker, it restricts the past date selection. But user can type in - thoughts?

Link bug to the User Story

Impact of this bug Describe the impact, i.e. what the impact is, and number of users impacted.

Chance of Occurring (high/medium/low/very low)

Pre Conditions: which Env, any pre-requesites or assumptions to execute steps?

Steps to Reproduce Steps to reproduce the behavior:

  1. Login as a Ministry user, Go to a request to add DIV. stages with Due date
  2. Type in a past date like "01/02/2001"
  3. Save the request
  4. System saves an past div stage due date.

Actual/ observed behaviour/ results

Expected behaviour A clear and concise description of what you expected to happen. Use the gherking language.

Screenshots/ Visual Reference/ Source

image.png

mpilchar commented 2 years ago

Added low priority label because it's not required for this Release and there is a workaround. However - I observed in training that it was coordinator's inclination to manually type in a date and it was entered wrong / affected functionality