From a83b3327b1095c62d692155ecc63d6b55ae3df3e Mon Sep 17 00:00:00 2001 From: quanmuito Date: Sun, 28 Jan 2024 02:11:48 +0200 Subject: [PATCH] fix test 22 --- src/__tests__/App.test.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/__tests__/App.test.tsx b/src/__tests__/App.test.tsx index f7dd34a..e02bc5f 100644 --- a/src/__tests__/App.test.tsx +++ b/src/__tests__/App.test.tsx @@ -41,10 +41,9 @@ test.each(deliveryCases)( act(async () => { fireEvent.click(screen.getByText(/calculate delivery price/i)); await new Promise((resolve) => setTimeout(resolve, 1000)); - return; + const result = await screen.findByTestId('fee'); + expect(result).toHaveTextContent(expected); }); - const result = await screen.findByTestId('fee'); - expect(result).toHaveTextContent(expected); } );