From 9d85a00f71f4febbf04ad10ad6e9cc5910f1c9c0 Mon Sep 17 00:00:00 2001 From: Jon Bindbeutel Date: Fri, 22 Nov 2024 12:24:21 -0500 Subject: [PATCH] unit test update --- VAMobile/src/components/Pagination.test.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/VAMobile/src/components/Pagination.test.tsx b/VAMobile/src/components/Pagination.test.tsx index 23322b667ad..c149bac4e47 100644 --- a/VAMobile/src/components/Pagination.test.tsx +++ b/VAMobile/src/components/Pagination.test.tsx @@ -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() }) @@ -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() })