-
Notifications
You must be signed in to change notification settings - Fork 248
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
(fix) O3-3473: Fix results viewer print modal date range selection #1883
Conversation
Size Change: -7.03 kB (-0.06%) Total Size: 11.1 MB ℹ️ View Unchanged
|
Any idea why the spec is failing, @jayasanka-sack? |
c642623
to
da9cab5
Compare
@denniskigen, the tests were a bit flaky, so I updated them with this PR: #1885. I initially pushed those commits to another PR but later decided to move them to a separate one. That’s why I had to force push to remove the commits. |
I've just merged the PR. Thank you, @jayasanka-sack! I've just rebased against main. Could you review this one? |
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, thanks @denniskigen !
Requirements
Summary
This PR is a follow-up to #1878. It amends the date comparison logic determining which test results to show for the selected date range. Currently, this logic doesn't consider the timestamps associated with the dates. I've added logic that considers the associated timestamps and validates that the End date cannot be earlier than the Start date. I'm also disabling the print modal's Print action button only if there are no test results to print.
Screenshots
print-results-viewer.mp4
Related Issue
https://openmrs.atlassian.net/browse/O3-3473
Other