diff --git a/src/__tests__/App.test.tsx b/src/__tests__/App.test.tsx index 515f9bd..436df8f 100644 --- a/src/__tests__/App.test.tsx +++ b/src/__tests__/App.test.tsx @@ -38,7 +38,7 @@ test.each(deliveryCases)( const orderTimeInput = await screen.findByLabelText(/order time/i); fireEvent.change(orderTimeInput, { target: { value: dt } }); - act(() => userEvent.click(screen.getByText(/calculate delivery price/i))); + act(() => fireEvent.click(screen.getByText(/calculate delivery price/i))); const result = await screen.findByTestId('fee'); expect(result).toHaveTextContent(expected); }