Skip to content

Commit 675142e

Browse files
Identified root cause for failing test, and fixed
1 parent 6b316e9 commit 675142e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/date-picker/__tests__/date-picker-calendar.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,9 @@ describe('Date picker calendar', () => {
129129
expect(findCalendarHeaderText(wrapper)).toBe('translated');
130130
// For each calendar we render 6 weeks (42 days) and each requires a label.
131131
// Additionally, we generate short and full labels for weekday names (14 in total),
132-
// and 2 labels for month name.
133-
// 42 + 14 + 2 = 58.
134-
expect(localStringMock).toHaveBeenCalledTimes(58);
132+
// and 2 labels for month name, and 1 label for the selected date button aria-label.
133+
// 42 + 14 + 2 + 1 = 59.
134+
expect(localStringMock).toHaveBeenCalledTimes(59);
135135
expect(localStringMock).toHaveBeenCalledWith(locale, expect.any(Object));
136136
});
137137

0 commit comments

Comments
 (0)