The GitHub Actions job "Required Checks" on 
texera.git/gh-readonly-queue/main/pr-6575-81201fa9deef8ddfb2d74f70e785dce1f6128ff2
 has failed.
Run started by GitHub user aglinxinyuan (triggered by aglinxinyuan).

Head commit for run:
2ac99ba13e7a91231cda5544e400315f0ab49ba8 / Xinyuan Lin <[email protected]>
test(frontend): add unit tests for PublicProjectComponent (#6575)

### What changes were proposed in this PR?

Adds a Vitest unit spec for `PublicProjectComponent`, which previously
had no test coverage. The 10 tests cover:
- `ngOnInit` loading `publicProjectEntries` and rendering table rows.
- reading `disabledList` from `NZ_MODAL_DATA`.
- `updateCheckedSet` add/remove and `onItemChecked`.
- `onAllChecked(true/false)` checking/unchecking every entry.
- `refreshCheckedStatus` for all-, none-, and some-selected
(`checked`/`indeterminate`).
- `addPublicProjects` calling the service with `Array.from(checkedList)`
and destroying the modal on success.

The component injects `NzModalRef` and `NZ_MODAL_DATA`, both provided in
the TestBed.

### Any related issues, documentation, discussions?

Closes #6572.

### How was this PR tested?

`npx ng test --watch=false
--include='**/public-project.component.spec.ts'` -> 10/10 passing. `yarn
format:ci` passes.

### Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Code (Opus 4.8 [1M context])

---------

Signed-off-by: Xinyuan Lin <[email protected]>
Co-authored-by: Copilot Autofix powered by AI 
<[email protected]>

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

With regards,
GitHub Actions via GitBox

Reply via email to