Skip to content

Commit

Permalink
remove modal test
Browse files Browse the repository at this point in the history
Signed-off-by: Eric <[email protected]>
  • Loading branch information
mengweieric committed Mar 15, 2024
1 parent be6c266 commit 54fc2ef
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/plugins/data_explorer/public/components/sidebar/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,24 +90,6 @@ describe('Sidebar Component', () => {
});
});

it('shows a modal when clicking a non-index pattern data source', () => {
const { getByText, getByTestId } = render(
<Provider store={store}>
<Sidebar />
</Provider>
);

fireEvent.click(getByTestId('comboBoxToggleListButton'));
waitFor(() => {
expect(getByText('s3-prod-mock')).toBeInTheDocument();
fireEvent.click(getByText('s3-prod-mock'));
expect(getByText('Open in Log Explorer')).toBeInTheDocument();
expect(getByText('Cancel')).toBeInTheDocument();
fireEvent.click(getByText('Cancel'));
expect(getByText('Open in Log Explorer')).not.toBeInTheDocument();
});
});

it('redirects to log explorer when clicking open-in-log-explorer button', () => {
const history = createMemoryHistory();
const { getByText, getByTestId } = render(
Expand Down

0 comments on commit 54fc2ef

Please sign in to comment.