Skip to content

Commit

Permalink
unit test update
Browse files Browse the repository at this point in the history
  • Loading branch information
dumathane committed Nov 22, 2024
1 parent 6beac8d commit 9d85a00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions VAMobile/src/components/Pagination.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ context('Pagination', () => {

it('calls onPrev when previous arrow is pressed', () => {
renderWithProps({ page: 2 })
fireEvent.press(screen.getByA11yHint('Previous page'))
fireEvent.press(screen.getByTestId('previous-page'))
expect(prevSpy).toHaveBeenCalled()
})

Expand All @@ -45,7 +45,7 @@ context('Pagination', () => {

it('calls onNext when next arrow is pressed', () => {
renderWithProps()
fireEvent.press(screen.getByA11yHint('Next page'))
fireEvent.press(screen.getByTestId('next-page'))
expect(nextSpy).toHaveBeenCalled()
})

Expand Down

0 comments on commit 9d85a00

Please sign in to comment.