From 04dc46f2fc9bccc3afa3aaf43f2045241cf55c06 Mon Sep 17 00:00:00 2001 From: Balaji-Sridharan_NYULH Date: Sun, 1 Dec 2024 12:21:14 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=AA=20Fix=20the=20test=20case=20failin?= =?UTF-8?q?g=20issue=20by=20setting=20the=20selected=20date=20to=20be=20sa?= =?UTF-8?q?me=20as=20the=20configured=20least=20possible=20month=20date?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #5252 --- src/test/calendar_test.test.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/test/calendar_test.test.tsx b/src/test/calendar_test.test.tsx index b595b10ea..5669aa6c6 100644 --- a/src/test/calendar_test.test.tsx +++ b/src/test/calendar_test.test.tsx @@ -449,12 +449,17 @@ describe("Calendar", () => { }); it("should not have previous month button when selecting a date in the second month, when min date is specified", () => { + const minDate = new Date("2024-11-06"); + const maxDate = new Date("2025-01-01"); + const selectedDate = minDate; + const { container } = render( , );