Skip to content
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

A test inside datepicker_test.test.js is failing when it's executed on the last week of a month #4934

Closed
balajis-qb opened this issue Jun 24, 2024 · 0 comments · Fixed by qburst/react-datepicker-3#25 or #4935 · May be fixed by Esnobart/test-task#1 or bakiUru/BarberApi#3

Comments

@balajis-qb
Copy link

Describe the bug
A test inside datepicker_test.test.js is failing when the test is executed on the last week of the month. The issue occurs as the component fails to auto switch to the next month in the test environment.

Failing Test Details: DatePicker › should update the preSelection state when a day is selected with Enter press

balajis-qb pushed a commit to qburst/react-datepicker-3 that referenced this issue Jun 24, 2024
…ing to the next month view when the current date is in the last row of the current month

- Apply this fix as the render fails to rerender days to the next month view

Closes Hacker0x01#4934
martijnrusschen added a commit that referenced this issue Jun 24, 2024
Fix #4934: ✅ Fix the broken test case in datepicker_test.test.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment