diff --git a/packages/ra-ui-materialui/src/input/SelectArrayInput.spec.tsx b/packages/ra-ui-materialui/src/input/SelectArrayInput.spec.tsx
index 3dbf1d4ef6b..fb7ccafe325 100644
--- a/packages/ra-ui-materialui/src/input/SelectArrayInput.spec.tsx
+++ b/packages/ra-ui-materialui/src/input/SelectArrayInput.spec.tsx
@@ -390,6 +390,49 @@ describe('', () => {
});
});
+ it('should support creation of a new choice with nested optionText', async () => {
+ const choices = [
+ { id: 'programming', name: { en: 'Programming' } },
+ { id: 'lifestyle', name: { en: 'Lifestyle' } },
+ { id: 'photography', name: { en: 'Photography' } },
+ ];
+ const newChoice = {
+ id: 'js_fatigue',
+ name: { en: 'New Kid On The Block' },
+ };
+
+ const { getByLabelText, getByRole, getByText, queryAllByText } = render(
+