Skip to content

Refactor DateRangeFilter tests to improve input validation coverage#60029

Merged
shahar1 merged 1 commit intoapache:mainfrom
arjav1528:main
Jan 3, 2026
Merged

Refactor DateRangeFilter tests to improve input validation coverage#60029
shahar1 merged 1 commit intoapache:mainfrom
arjav1528:main

Conversation

@arjav1528
Copy link
Contributor

This PR improves the test coverage and assertion clarity for the date range picker component.

The changes focus on strengthening existing tests by adding explicit assertions, removing unnecessary conditional checks, and covering previously untested edge cases such as invalid dates and times, leap year handling, boundary transitions, and partial date ranges. Additional scenarios verify correct callback behavior (onChange, onRemove), display value formatting, and proper clearing of validation errors.

No production logic is modified. This change is limited to test improvements and aims to reduce the risk of regressions while improving test readability and maintainability.

related: #59949

@boring-cyborg boring-cyborg bot added the area:UI Related to UI/UX. For Frontend Developers. label Jan 1, 2026
@shahar1 shahar1 merged commit 67748cc into apache:main Jan 3, 2026
3 checks passed
@boring-cyborg
Copy link

boring-cyborg bot commented Jan 3, 2026

Awesome work, congrats on your first merged pull request! You are invited to check our Issue Tracker for additional contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:UI Related to UI/UX. For Frontend Developers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants