diff --git a/packages/react/src/Pagination/Pagination.test.tsx b/packages/react/src/Pagination/Pagination.test.tsx
index 8446be4a06..d329d35a78 100644
--- a/packages/react/src/Pagination/Pagination.test.tsx
+++ b/packages/react/src/Pagination/Pagination.test.tsx
@@ -45,7 +45,7 @@ describe('Pagination', () => {
expect(screen.getByTestId('firstSpacer')).toBeInTheDocument()
})
- it('should navigate to the next page when clicking on the "next" button', () => {
+ it('should navigate to the next page when clicking on the ‘next’ button', () => {
const onPageChangeMock = jest.fn()
render()
@@ -60,7 +60,7 @@ describe('Pagination', () => {
expect(screen.getByText('7')).toHaveAttribute('aria-current', 'true')
})
- it('should navigate to the previous page when clicking on the "previous" button', () => {
+ it('should navigate to the previous page when clicking on the ‘previous’ button', () => {
const onPageChangeMock = jest.fn()
render()
@@ -110,8 +110,8 @@ describe('Pagination', () => {
it('renders custom aria-labels for the ‘previous’ and ‘next’ buttons', () => {
render()
- expect(screen.getByText('vorige')).toHaveAttribute('aria-label', 'Vorige pagina')
- expect(screen.getByText('volgende')).toHaveAttribute('aria-label', 'Volgende pagina')
+ expect(screen.getByRole('button', { name: 'Vorige pagina' })).toHaveAttribute('aria-label', 'Vorige pagina')
+ expect(screen.getByRole('button', { name: 'Volgende pagina' })).toHaveAttribute('aria-label', 'Volgende pagina')
})
it('supports ForwardRef in React', () => {