thisisdajaaa / codev-feedback-system

Codev's internal feedback system created using React.js, Typescript, TailwindCSS, Next.js, Storybook, MongoDB, Redux, Express.js
https://codev-feedback-system.vercel.app
2 stars 0 forks source link

Bug - User can select a past date in setting the surveys duration #123

Closed marycastino closed 1 year ago

marycastino commented 1 year ago

Steps to Reproduce

  1. Login as a surveyor
  2. Create a new survey
  3. In the Duration's 'From' input field, try to select a past date as start date
  4. In the Duration's 'To' input field, try to select a past date and/or a date that is before the From date.

Expected Result

Actual Result

Screenshot/Recording: Image

Acceptance Criteria:

  1. Restrict users not to be able to select past dates
  2. Display a validation error if 'To' date is set before the 'From' date (Error Message: Date must be after the start date)
thisisdajaaa commented 1 year ago

requesting for retest @aubreyCast , I have now disable the previous dates prior to the current date

thisisdajaaa commented 1 year ago

requesting for retest @aubreyCast