Skip to content

Commit 76a373e

Browse files
Add testids to prev and next month buttons
1 parent 5855bba commit 76a373e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/DatePicker/Common.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,13 +277,15 @@ export const CalendarRenderer = ({
277277
orientation="horizontal"
278278
>
279279
<IconButton
280+
data-testid="calendar-previous-month"
280281
icon="chevron-left"
281282
onClick={handlePreviousClick}
282283
size="sm"
283284
type="ghost"
284285
/>
285286
<UnselectableTitle>{headerDateFormatter.format(headerDate)}</UnselectableTitle>
286287
<IconButton
288+
data-testid="calendar-next-month"
287289
icon="chevron-right"
288290
onClick={handleNextClick}
289291
size="sm"

0 commit comments

Comments
 (0)