Commit 566ac8c
fix: resolve failing test assertions
Fixed 2 failing tests that were introduced by conditional expect fixes:
1. year_picker_test.test.tsx - "should call updateFocusOnPaginate":
- Changed test to navigate from last year element to trigger pagination
- Added yearItemNumber prop to ensure consistent year grid
- Now properly tests the requestAnimationFrame call in updateFocusOnPaginate
2. timepicker_test.test.tsx - "should not call onChange when clicking disabled time":
- Increased number of excluded times to ensure at least one is rendered
- Added timeIntervals={60} for better disabled time visibility
- Now reliably tests the disabled time click behavior
Coverage improved: 98.78% → 98.81% statements
All 1,203 tests passing ✓
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent d4617be commit 566ac8c
File tree
2 files changed
+32
-12
lines changed- src/test
2 files changed
+32
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
454 | 454 | | |
455 | 455 | | |
456 | 456 | | |
457 | | - | |
458 | | - | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
459 | 467 | | |
460 | 468 | | |
461 | 469 | | |
462 | | - | |
| 470 | + | |
463 | 471 | | |
464 | 472 | | |
465 | | - | |
| 473 | + | |
| 474 | + | |
466 | 475 | | |
467 | 476 | | |
468 | 477 | | |
| |||
471 | 480 | | |
472 | 481 | | |
473 | 482 | | |
| 483 | + | |
474 | 484 | | |
475 | 485 | | |
476 | 486 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1183 | 1183 | | |
1184 | 1184 | | |
1185 | 1185 | | |
1186 | | - | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
1187 | 1192 | | |
1188 | 1193 | | |
1189 | 1194 | | |
1190 | 1195 | | |
1191 | | - | |
1192 | | - | |
1193 | | - | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
1194 | 1199 | | |
1195 | | - | |
1196 | | - | |
1197 | | - | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
1198 | 1208 | | |
1199 | | - | |
| 1209 | + | |
1200 | 1210 | | |
1201 | 1211 | | |
1202 | 1212 | | |
| |||
0 commit comments