mirror of
https://github.com/grafana/grafana.git
synced 2025-02-15 01:53:33 -06:00
Chore: clean up console warning from Query Header tests (#46663)
This commit is contained in:
parent
cffa52d906
commit
7c255f190c
@ -1,6 +1,5 @@
|
||||
import React from 'react';
|
||||
import { render, screen } from '@testing-library/react';
|
||||
import { act } from 'react-dom/test-utils';
|
||||
import { render, screen, waitFor, act } from '@testing-library/react';
|
||||
import { CloudWatchLogsQuery, CloudWatchMetricsQuery, MetricEditorMode, MetricQueryType } from '../types';
|
||||
import { setupMockedDataSource } from '../__mocks__/CloudWatchDataSource';
|
||||
import QueryHeader from './QueryHeader';
|
||||
@ -74,9 +73,9 @@ describe('QueryHeader', () => {
|
||||
/>
|
||||
);
|
||||
|
||||
const builderElement = screen.queryByLabelText('Builder');
|
||||
expect(builderElement).toBeNull();
|
||||
const codeElement = screen.queryByLabelText('Code');
|
||||
expect(codeElement).toBeNull();
|
||||
await waitFor(() => {
|
||||
expect(screen.queryByLabelText('Builder')).toBeNull();
|
||||
expect(screen.queryByLabelText('Code')).toBeNull();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user