diff --git a/packages/ra-ui-materialui/src/input/NullableBooleanInput.spec.tsx b/packages/ra-ui-materialui/src/input/NullableBooleanInput.spec.tsx
index adeb7069fc7..d13515c56ce 100644
--- a/packages/ra-ui-materialui/src/input/NullableBooleanInput.spec.tsx
+++ b/packages/ra-ui-materialui/src/input/NullableBooleanInput.spec.tsx
@@ -77,6 +77,35 @@ describe('', () => {
).toBeNull();
});
+ it('should select the option "true" if defaultValue is true', () => {
+ const { container, getByRole, getByText, getAllByText } = render(
+
', () => {
).toBeNull();
});
+ it('should select the option "false" if defaultValue is false', () => {
+ const { getByRole, getByText, getAllByText, container } = render(
+ ', () => {
);
});
+ it('should select the option "null" if defaultValue is null', () => {
+ const { getByRole, getByText, container } = render(
+