The GitHub Actions job "Required Checks" on 
texera.git/gh-readonly-queue/main/pr-5632-891d2adbc8d096774121150eb079dfacdfded161
 has failed.
Run started by GitHub user xuang7 (triggered by xuang7).

Head commit for run:
8d50cf832e416954270afa04eba318c4dae11181 / 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/27570732316

With regards,
GitHub Actions via GitBox

Reply via email to