File tree Expand file tree Collapse file tree
packages/react/src/calendar/__tests__ Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,13 +9,24 @@ exports[`<Calendar /> should match the snapshot 1`] = `
99 <div
1010 class = " ty-calendar__header"
1111 >
12- <button
13- aria-label = " Previous"
14- class = " ty-calendar__nav-btn"
15- type = " button"
12+ <div
13+ class = " ty-calendar__header-nav"
1614 >
17- ‹
18- </button >
15+ <button
16+ aria-label = " Previous year"
17+ class = " ty-calendar__nav-btn"
18+ type = " button"
19+ >
20+ «
21+ </button >
22+ <button
23+ aria-label = " Previous month"
24+ class = " ty-calendar__nav-btn"
25+ type = " button"
26+ >
27+ ‹
28+ </button >
29+ </div >
1930 <span
2031 class = " ty-calendar__title"
2132 >
@@ -26,13 +37,24 @@ exports[`<Calendar /> should match the snapshot 1`] = `
2637 January 2024
2738 </button >
2839 </span >
29- <button
30- aria-label = " Next"
31- class = " ty-calendar__nav-btn"
32- type = " button"
40+ <div
41+ class = " ty-calendar__header-nav"
3342 >
34- ›
35- </button >
43+ <button
44+ aria-label = " Next month"
45+ class = " ty-calendar__nav-btn"
46+ type = " button"
47+ >
48+ ›
49+ </button >
50+ <button
51+ aria-label = " Next year"
52+ class = " ty-calendar__nav-btn"
53+ type = " button"
54+ >
55+ »
56+ </button >
57+ </div >
3658 </div >
3759 <div
3860 class = " ty-calendar__body"
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ describe('<Calendar />', () => {
115115
116116 it ( 'should render Today button when showToday is true' , ( ) => {
117117 const { container } = render ( < Calendar showToday value = { new Date ( 2024 , 0 , 15 ) } /> ) ;
118- const todayBtn = container . querySelector ( '.ty-calendar__today-btn ' ) ;
118+ const todayBtn = container . querySelector ( '.ty-calendar__today-link ' ) ;
119119 expect ( todayBtn ) . toBeTruthy ( ) ;
120120 expect ( todayBtn ! . textContent ) . toBe ( 'Today' ) ;
121121 } ) ;
You can’t perform that action at this time.
0 commit comments