-
Notifications
You must be signed in to change notification settings - Fork 6
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
[OF#3443] Date validation #548
Conversation
…where date is entered manually
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #548 +/- ##
==========================================
+ Coverage 70.18% 70.48% +0.30%
==========================================
Files 206 207 +1
Lines 4263 4290 +27
Branches 1154 1163 +9
==========================================
+ Hits 2992 3024 +32
+ Misses 1238 1236 -2
+ Partials 33 30 -3
☔ View full report in Codecov by Sentry. |
…his... The jest test didnt go anywhere (the method that creates a form with a date component returns a promise that never resolves). In storybook you can interact manually with a component with a minDate and see that it works. It's something.
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.
Perhaps we can add some jest unit tests for the validator itself so we at least have coverage on them?
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 is a good idea, I will try!
Fixes open-formulieren/open-forms#3443
Depends on open-formulieren/open-forms#3479
I give up on the tests 😢