New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
4366 - Date validation is inconsistent between inline and admin check(backend) #4641
Conversation
Codecov Report
@@ Coverage Diff @@
## main #4641 +/- ##
==========================================
+ Coverage 94.37% 94.39% +0.01%
==========================================
Files 281 281
Lines 8895 8898 +3
Branches 1798 1797 -1
==========================================
+ Hits 8395 8399 +4
+ Misses 476 475 -1
Partials 24 24
... and 1 file with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
This deploy was cleaned up. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, you probably need to add those +s back to the strings. I'm not sure what crazy way javascript compares a string to a number
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! Further work will be handled in #4661
- Date correctly wipes if any field is left blank.
- Admin check shows end year before start year validation message
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works as described. We will be re-enabling inline validating in 4661 for the state date.
Resolves #4366
Description
Date validation is happening between the in-line and admin check is inconsistent. When the admin check is enabled the validation in the page appears to work as expected. The admin check panel:
Chromatic Link
https://www.chromatic.com/build?appId=61d5b948cf6f17003a12bf77&number=1335
Significant changes or possible side effects
Per discussion, valid years are 1960 thru 2151.
Automated test cases written
Steps to manually verify this change
This pull request is ready to code review when
tests, refactor
screenreader, text scaling) OR an exemption is documented
This pull request is ready to test when
This pull request is ready to review when QA has
This pull request can be merged when