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 00:23:23 UTC
[GH] (texera/gh-readonly-queue/main/pr-6558-6bd1d5b1002eb802ff356777019272ccc6a5fe88): Workflow run "Required Checks" failed!
The GitHub Actions job "Required Checks" on texera.git/gh-readonly-queue/main/pr-6558-6bd1d5b1002eb802ff356777019272ccc6a5fe88 has failed.
Run started by GitHub user aglinxinyuan (triggered by aglinxinyuan).
Head commit for run:
3c18e3a1a1c451987c162a769b6c9e0911babcfe / Meng Wang <me...@uci.edu>
test(frontend): extend CardItem, ComputingUnitStatus, and FilesUploader spec coverage (#6558)
### What changes were proposed in this PR?
Extends three existing Vitest specs to cover previously-untested methods
(each component/service already had a spec). No production code was
changed.
**`CardItemComponent`** (+13 tests) —
- `initializeEntry`: workflow (owner→workspace link, counts,
`disableDelete`),
project (link + container icon + cover reset), file (folder-open icon),
and
the unexpected-type throw.
- `onEditName` / `onEditDescription`: snapshot the original + enter edit
mode;
the focus `setTimeout` is driven deterministically with
`fakeAsync`/`tick`.
- `openDetailModal`: opens the modal and bumps the view count; defaults
`wid` to 0 and skips the count fetch when `wid`/the modal instance is
absent.
- `toggleLike`: like/unlike + count refresh; no-ops on failure, missing
user,
or missing entry id.
**`ComputingUnitStatusService`** (+8 tests) —
`getAllComputingUnits` (replay + forward),
`getSelectedComputingUnitValue`
(null → selected), `getStatus` (null/Running/Pending/default → enum),
and
`refreshComputingUnitList` (re-fetches and pushes to subscribers).
**`FilesUploaderComponent`** (+3 tests) —
`showFileUploadBanner` (sets flag/type/message, overwrites) and
`hideBanner`
(clears only the finished flag).
All collaborators are stubbed (`vi.spyOn` on injected `HubService`/
`NzModalService`, the managing-service stub, synchronous `of(...)`); no
backend,
no real modal, no wall-clock/timer dependence.
### Any related issues, documentation, discussions?
Closes #6553
### How was this PR tested?
Extended unit tests, run locally in `frontend/` (all green; failure
paths
verified by breaking assertions to confirm the suites go red):
```
ng test --watch=false --include <each spec>
# files-uploader 8 passed (5 existing + 3 new)
# computing-unit-status 13 passed (5 existing + 8 new)
# card-item 46 passed (33 existing + 13 new)
eslint <specs> # clean
prettier --check # clean
```
### Was this PR authored or co-authored using generative AI tooling?
Generated-by: Claude Code (Opus 4.8 [1M context])
Report URL: https://github.com/apache/texera/actions/runs/29709187410
With regards,
GitHub Actions via GitBox