The GitHub Actions job "Benchmarks PR Comment" on texera.git/main has succeeded.
Run started by GitHub user juliethecao (triggered by juliethecao).

Head commit for run:
586949232445df31dffe510f7f7492ced2810684 / lie18uci <[email protected]>
test(frontend): add FormlyRepeatDndComponent unit tests (#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

Report URL: https://github.com/apache/texera/actions/runs/27648487464

With regards,
GitHub Actions via GitBox

Reply via email to