Skip to content

Commit

Permalink
updated test
Browse files Browse the repository at this point in the history
  • Loading branch information
JamalAlabdullah committed Dec 23, 2024
1 parent 8462ea4 commit 6fa35ea
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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' },
},
];

Expand Down Expand Up @@ -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', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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',
};
Expand Down

0 comments on commit 6fa35ea

Please sign in to comment.