You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
In calendar_test.test.tsx file - We have an issue with the test block should not have previous month button when selecting a date in the second month, when min date is specified.
As you could see from the above screenshot, we're setting the min and the max date for testing previous month button disable case, but inorder for it to work, we need to navigate to the least possible month that we can select and continue the test case. In this example, we set the minDate to new Date("2024-11-06") assuming the calendar month will be always in November, 2024. But it's failing now as the current month changed to December 2024.
To Reproduce $yarn test
Fix
As a fix, we need to programatically switch back the configured min month or set the selected date same as the minDate's month.
The text was updated successfully, but these errors were encountered:
Describe the bug
In
calendar_test.test.tsx
file - We have an issue with the test blockshould not have previous month button when selecting a date in the second month, when min date is specified
.As you could see from the above screenshot, we're setting the min and the max date for testing previous month button disable case, but inorder for it to work, we need to navigate to the least possible month that we can select and continue the test case. In this example, we set the
minDate
tonew Date("2024-11-06")
assuming the calendar month will be always inNovember, 2024
. But it's failing now as the current month changed toDecember 2024
.To Reproduce
$yarn test
Fix
As a fix, we need to programatically switch back the configured min month or set the selected date same as the minDate's month.
The text was updated successfully, but these errors were encountered: