diff --git a/src/InputGuesser.test.tsx b/src/InputGuesser.test.tsx index 3f50646f..2a73a86d 100644 --- a/src/InputGuesser.test.tsx +++ b/src/InputGuesser.test.tsx @@ -209,11 +209,8 @@ describe('', () => { 'resources.users.fields.embedded', ); expect(embeddedField).toHaveValue('{"address":"91 rue du Temple"}'); - expect( - await screen.findAllByText('resources.users.fields.embeddeds.0'), - ).toHaveLength(1); - const embeddedsField = screen.getByLabelText( - 'resources.users.fields.embeddeds.0', + const embeddedsField = await screen.findByLabelText( + 'resources.users.fields.embeddeds', ); expect(embeddedsField).toHaveValue('{"address":"16 avenue de Rivoli"}'); diff --git a/src/InputGuesser.tsx b/src/InputGuesser.tsx index 1b9085c3..3f372aa4 100644 --- a/src/InputGuesser.tsx +++ b/src/InputGuesser.tsx @@ -177,6 +177,7 @@ export const IntrospectedInputGuesser = ({