You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@texera.apache.org by GitBox <gi...@apache.org> on 2026/07/20 06:03:38 UTC
[GH] (texera/gh-readonly-queue/main/pr-6575-e914fa1e2f87d48eb993c134cb52aaebd7c879f3): Workflow run "Required Checks" is working again!
The GitHub Actions job "Required Checks" on texera.git/gh-readonly-queue/main/pr-6575-e914fa1e2f87d48eb993c134cb52aaebd7c879f3 has succeeded.
Run started by GitHub user aglinxinyuan (triggered by aglinxinyuan).
Head commit for run:
2438b6248b7d85e7c1daf77ad61b3e0f95aa6cf3 / Xinyuan Lin <xi...@uci.edu>
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 <xi...@uci.edu>
Co-authored-by: Copilot Autofix powered by AI <17...@users.noreply.github.com>
Report URL: https://github.com/apache/texera/actions/runs/29720151941
With regards,
GitHub Actions via GitBox