Skip to content

Commit

Permalink
Fix tests for next/prev labels
Browse files Browse the repository at this point in the history
  • Loading branch information
gpbl committed May 17, 2024
1 parent 91047dc commit 95cbbb8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion website/examples/Weeknumber.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ mockDate(today);

function getWeekButton(week: number) {
return screen.getByRole("button", {
name: `Week n. ${week}`
name: `Week ${week}`
});
}

Expand Down
8 changes: 4 additions & 4 deletions website/examples/__snapshots__/Range.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ exports[`should match the snapshot 1`] = `
class="rdp-nav"
>
<button
aria-label="Go to previous month"
aria-label="Previous Month"
class="rdp-button_reset rdp-button rdp-nav_button rdp-nav_button_previous"
name="previous-month"
type="button"
Expand All @@ -49,7 +49,7 @@ exports[`should match the snapshot 1`] = `
</svg>
</button>
<button
aria-label="Go to next month"
aria-label="Next Month"
class="rdp-button_reset rdp-button rdp-nav_button rdp-nav_button_next"
name="next-month"
type="button"
Expand Down Expand Up @@ -673,7 +673,7 @@ exports[`when a day in the range is clicked when the day is clicked again when a
class="rdp-nav"
>
<button
aria-label="Go to previous month"
aria-label="Previous Month"
class="rdp-button_reset rdp-button rdp-nav_button rdp-nav_button_previous"
name="previous-month"
type="button"
Expand All @@ -692,7 +692,7 @@ exports[`when a day in the range is clicked when the day is clicked again when a
</svg>
</button>
<button
aria-label="Go to next month"
aria-label="Next Month"
class="rdp-button_reset rdp-button rdp-nav_button rdp-nav_button_next"
name="next-month"
type="button"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ exports[`should match the snapshot 1`] = `
class="rdp-nav"
>
<button
aria-label="Go to previous month"
aria-label="Previous Month"
class="rdp-button_reset rdp-button rdp-nav_button rdp-nav_button_previous"
name="previous-month"
type="button"
Expand All @@ -47,7 +47,7 @@ exports[`should match the snapshot 1`] = `
</svg>
</button>
<button
aria-label="Go to next month"
aria-label="Next Month"
class="rdp-button_reset rdp-button rdp-nav_button rdp-nav_button_next"
name="next-month"
type="button"
Expand Down
4 changes: 2 additions & 2 deletions website/test/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ export function renderApp(children: React.ReactNode) {
}

export function prevButton() {
return screen.getByRole("button", { name: "Go to previous month" });
return screen.getByRole("button", { name: "Previous Month" });
}

export function nextButton() {
return screen.getByRole("button", { name: "Go to next month" });
return screen.getByRole("button", { name: "Next Month" });
}

export function focusedElement() {
Expand Down

0 comments on commit 95cbbb8

Please sign in to comment.