diff --git a/packages/ra-ui-materialui/src/input/RadioButtonGroupInput.spec.tsx b/packages/ra-ui-materialui/src/input/RadioButtonGroupInput.spec.tsx
index 83bf5d8ded4..11fd1a3a536 100644
--- a/packages/ra-ui-materialui/src/input/RadioButtonGroupInput.spec.tsx
+++ b/packages/ra-ui-materialui/src/input/RadioButtonGroupInput.spec.tsx
@@ -1,6 +1,11 @@
import React from 'react';
import expect from 'expect';
-import { render, cleanup, fireEvent } from '@testing-library/react';
+import {
+ render,
+ cleanup,
+ fireEvent,
+ waitForDomChange,
+} from '@testing-library/react';
import { Form } from 'react-final-form';
import { TestTranslationProvider } from 'ra-core';
@@ -41,6 +46,30 @@ describe('