mirror of
https://github.com/grafana/grafana.git
synced 2025-02-14 17:43:35 -06:00
* Panel * Support tempo dash variables * Support tempo explore variables * Only show span links for explore * Cleanup * Added tests * apply variables to search * Tests for search variables * Handling no data * Interpolation and tests * TracesPanel tests * More tests * Fix for backend test * Manager integration test fix * Traces doc and updated visualizations index doc * Logs for this span * Search, scrollToTop, other improvements * Refactor to extract common code * Removed TopOfViewRefType optional * Remove topOfViewRef optional * Removed another optional and fixed tests * Test * Only show search bar if trace * Support traces panel in add to dashboard * Self review * Update betterer * Linter fixes * Updated traces doc * Ahh, moved the for more info too * Updated betterer.results * Added new icon * Updated expectedListResp.json
23 lines
553 B
TypeScript
23 lines
553 B
TypeScript
import { render, screen } from '@testing-library/react';
|
|
import React from 'react';
|
|
|
|
import { LoadingState, PanelProps } from '@grafana/data';
|
|
|
|
import { TracesPanel } from './TracesPanel';
|
|
|
|
describe('TracesPanel', () => {
|
|
it('shows no data message when no data supplied', async () => {
|
|
const props = {
|
|
data: {
|
|
error: undefined,
|
|
series: [],
|
|
state: LoadingState.Done,
|
|
},
|
|
} as unknown as PanelProps;
|
|
|
|
render(<TracesPanel {...props} />);
|
|
|
|
await screen.findByText('No data found in response');
|
|
});
|
|
});
|