Skip to content

Commit

Permalink
[Uptime] Fix unhandled promise rejection failure (elastic#114883)
Browse files Browse the repository at this point in the history
* Fix unhandled promise rejection failure.

* Mock monaco to avoid editor-related errors failing test.

* Update assertion.

Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
justinkambic and kibanamachine committed Oct 19, 2021
1 parent ae659e5 commit c760e5d
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -313,11 +313,11 @@ describe.skip('<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 c760e5d

Please sign in to comment.