From a758be2fadda60542ebe8c895f5b95280d29c508 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Kaiser Date: Thu, 19 May 2022 15:47:05 +0200 Subject: [PATCH] fix AutocompleteInput tests --- .../ra-ui-materialui/src/input/AutocompleteInput.spec.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/ra-ui-materialui/src/input/AutocompleteInput.spec.tsx b/packages/ra-ui-materialui/src/input/AutocompleteInput.spec.tsx index a7b54efb80f..092f5802b86 100644 --- a/packages/ra-ui-materialui/src/input/AutocompleteInput.spec.tsx +++ b/packages/ra-ui-materialui/src/input/AutocompleteInput.spec.tsx @@ -928,9 +928,9 @@ describe('', () => { // Give time for the (previously thrown) error to happen await new Promise(resolve => setTimeout(resolve, 1000)); await waitFor(() => { - screen.getByText('resources.tags.fields.tags'); + screen.getByText('resources.undefined.fields.tags'); }); - fireEvent.click(screen.getByText('resources.tags.fields.tags')); + fireEvent.click(screen.getByText('resources.undefined.fields.tags')); await waitFor(() => { screen.getByText('No options'); });