The GitHub Actions job "Required Checks" on texera.git/gh-readonly-queue/main/pr-6574-99a8815c10f1cbc5cda40fa210171b6052b63c79 has failed. Run started by GitHub user aglinxinyuan (triggered by aglinxinyuan).
Head commit for run: 2109103457a1dcada80f712a09dec0bc757f664c / Xinyuan Lin <[email protected]> test(frontend): add unit tests for UserProjectComponent (#6574) ### What changes were proposed in this PR? Adds a Vitest unit spec for `UserProjectComponent`, which previously had no test coverage. The 14 tests cover: - constructor resolving `uid` from `getCurrentUser()` (default, specific, undefined). - `ngOnInit` populating `userProjectEntries` from `getProjectList`. - `deleteProject` calling the service then reloading. - `clickCreateButton`/`unclickCreateButton` flag + name reset. - `createNewProject` valid (creates + reloads) vs empty and duplicate names (notification error, no create). - `sortByCreationTime`/`sortByNameAsc`/`sortByNameDesc` orderings. - `openPublicProject` modal args (`nzData.disabledList` set of existing pids) and the `afterClose`-driven reload. The heavy `UserProjectListItemComponent` child is swapped for a same-selector stub via the additive `remove`/`add` override. ### Any related issues, documentation, discussions? Closes #6571. ### How was this PR tested? `npx ng test --watch=false --include='**/user-project.component.spec.ts'` -> 14/14 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/29722012437 With regards, GitHub Actions via GitBox
