bcgov / foi-file-conversion

Apache License 2.0
0 stars 0 forks source link

Select End Date in Future #19

Closed lmullane closed 3 years ago

lmullane commented 3 years ago

Describe the bug in current situation User can select an 'End Date' in the future.

Link bug to the User Story

77

Impact of this bug Low. All users could make the error, but it easy for them to fix.

Chance of Occurring (high/medium/low/very low) Low- User is unlikely to make this error. Pre Conditions: which Env, any pre-requesites or assumptions to execute steps?

Steps to Reproduce Steps to reproduce the behavior:

  1. Go to a request view: 'https://test-foirequest.apps.silver.devops.gov.bc.ca/foi/reviewrequest/29.'
  2. Click on the calendar for the 'End Date'
  3. Select an 'End Date' in the future
  4. See that the 'End Date' has been selected

Actual/ observed behaviour/ results

Expected behaviour

AC is written like this: GIVEN the analyst has opened the calendar WHEN the analyst clicks a date before the 'Start Date' or a date in the future THEN date will not be able to be selected AND a message will appear that you cannot select a date before the start date or in the future

Could also have future dates greyed out.

Screenshots/ Visual Reference/ Source Screen Shot 2021-07-26 at 9.05.33 AM.png