The GitHub Actions job "Required Checks" on texera.git/gh-readonly-queue/main/pr-6581-81201fa9deef8ddfb2d74f70e785dce1f6128ff2 has succeeded. Run started by GitHub user mengw15 (triggered by mengw15).
Head commit for run: 547d5051aade41c2fb0a38c6c0d714967a6c502f / Xinyuan Lin <[email protected]> test(frontend): add unit tests for HubSearchResultComponent (#6581) ### What changes were proposed in this PR? Adds a Vitest unit spec for `HubSearchResultComponent`, which previously had no test coverage. The 17 tests cover: - `ngOnInit` URL branching (`dataset` -> `CreateTimeDesc`; `workflow` -> default). - `viewMode` initial value from `localStorage` and `setViewMode` (no-op when unchanged; persists on change). - `search()`: early returns when the filters/results ViewChildren are unset; `reset` + `loadMore`; same-filter-list + same-sort dedup vs `forced`; re-run on sort-method change; and `pid` -> `projectIds` injection into the search params (asserted by invoking the captured loader against the mocked `SearchService`). - template rendering for the dataset vs workflow view-toggle. Heavy child components are stripped via the additive `remove`/`add` override with same-selector stubs. ### Any related issues, documentation, discussions? Closes #6578. ### How was this PR tested? `npx ng test --watch=false --include='**/hub-search-result.component.spec.ts'` -> 17/17 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]) Report URL: https://github.com/apache/texera/actions/runs/29721524413 With regards, GitHub Actions via GitBox
