grafana_bak/public/app/plugins/panel/traces/TracesPanel.test.tsx
2025-04-01 10:38:02 +09:00

22 lines
526 B
TypeScript

import { render, screen } from '@testing-library/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');
});
});