diff --git a/public/app/features/alerting/unified/components/rule-editor/AnnotationsStep.test.tsx b/public/app/features/alerting/unified/components/rule-editor/AnnotationsStep.test.tsx
index 5fb3267432a..4ff8fc6411a 100644
--- a/public/app/features/alerting/unified/components/rule-editor/AnnotationsStep.test.tsx
+++ b/public/app/features/alerting/unified/components/rule-editor/AnnotationsStep.test.tsx
@@ -1,3 +1,4 @@
+import { act } from '@testing-library/react';
import type { JSX } from 'react';
import { FormProvider, useForm } from 'react-hook-form';
import { render, screen, within } from 'test/test-utils';
@@ -301,15 +302,20 @@ describe('AnnotationsField', function () {
})
);
- render(
-
+ // TODO investigate why we need act
+ // see https://github.com/testing-library/react-testing-library/issues/1375
+ // eslint-disable-next-line testing-library/no-unnecessary-act
+ await act(() =>
+ render(
+
+ )
);
expect(await ui.dashboardAnnotation.find()).toBeInTheDocument();