From c6036068e73c0fa76582c6bf73eea2b073c5a904 Mon Sep 17 00:00:00 2001 From: Aaron Hill Date: Fri, 13 Dec 2024 14:07:30 -0500 Subject: [PATCH] fix(SaleHeaderbanner): fix test --- src/patterns/SaleHeaderBanner/SaleHeaderBanner.test.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/patterns/SaleHeaderBanner/SaleHeaderBanner.test.tsx b/src/patterns/SaleHeaderBanner/SaleHeaderBanner.test.tsx index be81c941..9ac33fac 100644 --- a/src/patterns/SaleHeaderBanner/SaleHeaderBanner.test.tsx +++ b/src/patterns/SaleHeaderBanner/SaleHeaderBanner.test.tsx @@ -65,7 +65,7 @@ describe('SaleHeaderBanner', () => { Register to Bid , ); - screen.getByText('Register to Bid').click(); + screen.getByRole('button').click(); expect(handleClick).toHaveBeenCalledTimes(1); });