lie18uci opened a new pull request, #5632: URL: https://github.com/apache/texera/pull/5632
### What changes were proposed in this PR? This PR adds frontend unit tests for `FormlyRepeatDndComponent`. The new spec verifies that: * The component is created successfully. * onDrop does nothing when previousIndex == currentIndex. * onDrop does nothing when model is undefined. * onDrop reorders model, field.fieldGroup, and formControl on the happy path. * props.reorder is called after a successful reorder. This improves test coverage for the drag-and-drop reorder behavior without changing existing component behavior. ### Any related issues, documentation, discussions? Closes #5464 ### How was this PR tested? Ran the following command locally from the frontend directory: yarn test --include='**/repeat-dnd.component.spec.ts' The test passed successfully with 1 test file passed and 4 tests passed. Also ran: yarn lint ^ yarn lint completed successfully. ### Was this PR authored or co-authored using generative AI tooling? Generated-by: ChatGPT -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
