diff --git a/frontend/packages/ux-editor/src/components/Properties/EditSubformTableColumns/ColumnElement/EditColumnElement/EditColumnElement.test.tsx b/frontend/packages/ux-editor/src/components/Properties/EditSubformTableColumns/ColumnElement/EditColumnElement/EditColumnElement.test.tsx index 631535c2ba0..ccf49b6392a 100644 --- a/frontend/packages/ux-editor/src/components/Properties/EditSubformTableColumns/ColumnElement/EditColumnElement/EditColumnElement.test.tsx +++ b/frontend/packages/ux-editor/src/components/Properties/EditSubformTableColumns/ColumnElement/EditColumnElement/EditColumnElement.test.tsx @@ -14,11 +14,24 @@ const defaultComponents = [ type: subformLayoutMock.component1.type, itemType: subformLayoutMock.component1.itemType, dataModelBindings: subformLayoutMock.component1.dataModelBindings, + textResourceBindings: subformLayoutMock.component1.textResourceBindings, }, { id: subformLayoutMock.component2Id, type: subformLayoutMock.component2.type, itemType: subformLayoutMock.component2.itemType, + dataModelBindings: { + binding1: 'path1', + binding2: 'path2', + }, + textResourceBindings: { title: 'component2-title' }, + }, + { + id: subformLayoutMock.component2Id, + type: subformLayoutMock.component2.type, + itemType: subformLayoutMock.component2.itemType, + dataModelBindings: {}, + textResourceBindings: { title: 'no-bindings-title' }, }, ]; @@ -48,7 +61,7 @@ describe('EditColumnElementComponentSelect', () => { ).toBeInTheDocument(); }); - it('should not render no components message when components are available', async () => { + it('should not render availability components message when components are available', async () => { const user = userEvent.setup(); renderEditColumnElementComponentSelect(); const componentSelect = screen.getByRole('combobox', { diff --git a/frontend/packages/ux-editor/src/testing/subformLayoutMock.ts b/frontend/packages/ux-editor/src/testing/subformLayoutMock.ts index d855002b95e..05fe467aa19 100644 --- a/frontend/packages/ux-editor/src/testing/subformLayoutMock.ts +++ b/frontend/packages/ux-editor/src/testing/subformLayoutMock.ts @@ -8,7 +8,7 @@ const component1Id = 'SubformComponent1'; const component1: FormComponent = { id: component1Id, type: ComponentType.Input, - dataModelBindings: { simpleBinding: 'some-path' }, + dataModelBindings: { simpleBinding: 'some-path', binding2: ' path2' }, textResourceBindings: { title: 'some-title' }, itemType: 'COMPONENT', };