diff --git a/packages/dnb-eufemia/src/extensions/forms/FieldBlock/FieldBlock.tsx b/packages/dnb-eufemia/src/extensions/forms/FieldBlock/FieldBlock.tsx index a712a7a5259..932b73119dd 100644 --- a/packages/dnb-eufemia/src/extensions/forms/FieldBlock/FieldBlock.tsx +++ b/packages/dnb-eufemia/src/extensions/forms/FieldBlock/FieldBlock.tsx @@ -639,6 +639,7 @@ function FieldBlock(props: Props) { diff --git a/packages/dnb-eufemia/src/extensions/forms/FieldBlock/__tests__/FieldBlock.test.tsx b/packages/dnb-eufemia/src/extensions/forms/FieldBlock/__tests__/FieldBlock.test.tsx index c2e9c4e36d1..2de371dcd27 100644 --- a/packages/dnb-eufemia/src/extensions/forms/FieldBlock/__tests__/FieldBlock.test.tsx +++ b/packages/dnb-eufemia/src/extensions/forms/FieldBlock/__tests__/FieldBlock.test.tsx @@ -975,6 +975,17 @@ describe('FieldBlock', () => { ) }) + it('should show indicator with an label when fieldState is set to pending', async () => { + render( + + + + ) + + const element = document.querySelector('.dnb-forms-submit-indicator') + expect(element).toHaveTextContent(nb.SubmitIndicator.label) + }) + it('should show indicator two (2) times when nested', async () => { render(