-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: dynamic list collapsing issue #1248
Conversation
b9f58c0
to
aa3ad91
Compare
it('should render collapsed items under `fjs-repeat-row-collapsed`', function () { | ||
// given | ||
const field = { | ||
...defaultField, | ||
nonCollapsedItems: 1, | ||
}; | ||
|
||
// when | ||
const { container } = createDynamicList({ field }); | ||
|
||
// then | ||
const collapsedItems = container.querySelectorAll('.fjs-repeat-row-collapsed .fjs-form-field-textfield'); | ||
expect(collapsedItems).to.have.length(2); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test is not really guaranteeing that we're outputting the correct data, the ideal test would be to just check the output data. It it possible to write a test like that?
I would just delete this test if it's not possible since this test is just testing the implementation details of the dynamic list
8826763
to
b50879f
Compare
Closes #1230