chartPanel.spec.tsx 590 B

12345678910111213141516171819
  1. import {initializeOrg} from 'sentry-test/initializeOrg';
  2. import {render, screen} from 'sentry-test/reactTestingLibrary';
  3. import ChartPanel from 'sentry/views/insights/common/components/chartPanel';
  4. describe('chartPanel', function () {
  5. const {organization} = initializeOrg({
  6. organization: {features: ['insights-alerts', 'insights-initial-modules']},
  7. });
  8. it('should render', function () {
  9. render(
  10. <ChartPanel title="Avg Latency">
  11. <div />
  12. </ChartPanel>,
  13. {organization}
  14. );
  15. expect(screen.getByText('Avg Latency')).toBeInTheDocument();
  16. });
  17. });