Skip to content

Commit

Permalink
feat: Update Pagination test to use aria-label attributes
Browse files Browse the repository at this point in the history
Co-authored-by: Vincent Smedinga <[email protected]>
  • Loading branch information
dlnr and VincentSmedinga committed May 10, 2024
1 parent f0caff9 commit 3c4e936
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react/src/Pagination/Pagination.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ describe('Pagination', () => {

it('render custom aria-labels for the "previous" and "next" buttons', () => {
render(<Pagination totalPages={10} previousAriaLabel="Vorige pagina" nextAriaLabel="Volgende pagina" />)
expect(screen.getByText('vorige')).toBeInTheDocument()
expect(screen.getByText('volgende')).toBeInTheDocument()
expect(screen.getByText('vorige')).toHaveAttribute('aria-label', 'Vorige pagina')
expect(screen.getByText('volgende')).toHaveAttribute('aria-label', 'Volgende pagina')
})

it('supports ForwardRef in React', () => {
Expand Down

0 comments on commit 3c4e936

Please sign in to comment.