Skip to content

Commit

Permalink
fix test 16
Browse files Browse the repository at this point in the history
  • Loading branch information
Quanmuito committed Jan 27, 2024
1 parent d588658 commit 6bd7ae2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/__tests__/App.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 6bd7ae2

Please sign in to comment.