Skip to content

Commit

Permalink
Fix unhandled promise rejection failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
justinkambic committed Oct 13, 2021
1 parent 804da09 commit 51595bd
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -288,11 +288,11 @@ describe('<CustomFields />', () => {
// resolve errors
fireEvent.click(monitorType);

waitFor(() => {
expect(getByText('http')).toBeInTheDocument();
expect(getByText('tcp')).toBeInTheDocument();
expect(getByText('icmp')).toBeInTheDocument();
expect(queryByText('browser')).not.toBeInTheDocument();
await waitFor(() => {
expect(getByText('HTTP')).toBeInTheDocument();
expect(getByText('TCP')).toBeInTheDocument();
expect(getByText('ICMP')).toBeInTheDocument();
expect(queryByText('BROWSER')).not.toBeInTheDocument();
});
});
});

0 comments on commit 51595bd

Please sign in to comment.