File tree Expand file tree Collapse file tree 2 files changed +17
-8
lines changed
packages/pluggableWidgets/calendar-web/src/__tests__ Expand file tree Collapse file tree 2 files changed +17
-8
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,15 @@ const defaultProps: CalendarContainerProps = {
25
25
overflowY : "auto"
26
26
} ;
27
27
28
+ beforeAll ( ( ) => {
29
+ jest . useFakeTimers ( ) ;
30
+ jest . setSystemTime ( new Date ( "2025-04-28T12:00:00Z" ) ) ;
31
+ } ) ;
32
+
33
+ afterAll ( ( ) => {
34
+ jest . useRealTimers ( ) ;
35
+ } ) ;
36
+
28
37
describe ( "Calendar" , ( ) => {
29
38
it ( "renders correctly with basic props" , ( ) => {
30
39
const calendar = render ( < Calendar { ...defaultProps } /> ) ;
Original file line number Diff line number Diff line change @@ -617,10 +617,10 @@ exports[`Calendar renders correctly with basic props 1`] = `
617
617
class = " rbc-day-bg"
618
618
/>
619
619
<div
620
- class = " rbc-day-bg"
620
+ class = " rbc-day-bg rbc-today "
621
621
/>
622
622
<div
623
- class = " rbc-day-bg rbc-today "
623
+ class = " rbc-day-bg"
624
624
/>
625
625
<div
626
626
class = " rbc-day-bg"
@@ -654,7 +654,7 @@ exports[`Calendar renders correctly with basic props 1`] = `
654
654
</button >
655
655
</div >
656
656
<div
657
- class = " rbc-date-cell"
657
+ class = " rbc-date-cell rbc-now rbc-current "
658
658
role = " cell"
659
659
>
660
660
<button
@@ -665,7 +665,7 @@ exports[`Calendar renders correctly with basic props 1`] = `
665
665
</button >
666
666
</div >
667
667
<div
668
- class = " rbc-date-cell rbc-now rbc-current "
668
+ class = " rbc-date-cell"
669
669
role = " cell"
670
670
>
671
671
<button
@@ -1340,10 +1340,10 @@ exports[`Calendar renders correctly with basic props 1`] = `
1340
1340
class = " rbc-day-bg"
1341
1341
/>
1342
1342
<div
1343
- class = " rbc-day-bg"
1343
+ class = " rbc-day-bg rbc-today "
1344
1344
/>
1345
1345
<div
1346
- class = " rbc-day-bg rbc-today "
1346
+ class = " rbc-day-bg"
1347
1347
/>
1348
1348
<div
1349
1349
class = " rbc-day-bg"
@@ -1377,7 +1377,7 @@ exports[`Calendar renders correctly with basic props 1`] = `
1377
1377
</button >
1378
1378
</div >
1379
1379
<div
1380
- class = " rbc-date-cell"
1380
+ class = " rbc-date-cell rbc-now rbc-current "
1381
1381
role = " cell"
1382
1382
>
1383
1383
<button
@@ -1388,7 +1388,7 @@ exports[`Calendar renders correctly with basic props 1`] = `
1388
1388
</button >
1389
1389
</div >
1390
1390
<div
1391
- class = " rbc-date-cell rbc-now rbc-current "
1391
+ class = " rbc-date-cell"
1392
1392
role = " cell"
1393
1393
>
1394
1394
<button
You can’t perform that action at this time.
0 commit comments