Skip to content
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

Merged
merged 2 commits into from
Aug 26, 2024
Merged

Conversation

Skaiir
Copy link
Contributor

@Skaiir Skaiir commented Aug 26, 2024

Closes #1230

@Skaiir Skaiir requested a review from vsgoulart August 26, 2024 06:16
@bpmn-io-tasks bpmn-io-tasks bot added the needs review Review pending label Aug 26, 2024
@Skaiir Skaiir changed the title fix: monkey patch dynamic list collapsing issue fix: dynamic list collapsing issue Aug 26, 2024
@Skaiir Skaiir force-pushed the monkey-patch-dynamic-list-issue branch from b9f58c0 to aa3ad91 Compare August 26, 2024 06:19
Comment on lines 78 to 91
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);
});
Copy link
Contributor

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

@Skaiir Skaiir force-pushed the monkey-patch-dynamic-list-issue branch from 8826763 to b50879f Compare August 26, 2024 09:04
@Skaiir Skaiir requested a review from vsgoulart August 26, 2024 09:37
@Skaiir Skaiir merged commit 9ce1e21 into main Aug 26, 2024
11 of 12 checks passed
@Skaiir Skaiir deleted the monkey-patch-dynamic-list-issue branch August 26, 2024 10:07
@bpmn-io-tasks bpmn-io-tasks bot removed the needs review Review pending label Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants