@@ -72,9 +78,7 @@ export const Alert = React.forwardRef(
-
- {title}
-
+
{title}
{children &&
{children}
}
diff --git a/public/app/features/correlations/Forms/QueryEditorField.test.tsx b/public/app/features/correlations/Forms/QueryEditorField.test.tsx
index e2f8ec081c5..b5989a0f077 100644
--- a/public/app/features/correlations/Forms/QueryEditorField.test.tsx
+++ b/public/app/features/correlations/Forms/QueryEditorField.test.tsx
@@ -69,7 +69,7 @@ describe('QueryEditorField', () => {
it('shows an info alert when no datasource is selected', async () => {
renderWithContext(
);
- expect(await screen.findByRole('alert', { name: 'No data source selected' })).toBeInTheDocument();
+ expect(await screen.findByRole('status', { name: 'No data source selected' })).toBeInTheDocument();
});
it('shows an info alert when datasaource does not export a query editor', async () => {