The GitHub Actions job "Required Checks" on 
texera.git/gh-readonly-queue/main/pr-5234-968144bdfa9eb96df1024c3c4f5ba34afdcf8122
 has failed.
Run started by GitHub user aicam (triggered by aicam).

Head commit for run:
d05a3b10ec16aca525518b0a1d590992cb4f789c / Matthew B. <[email protected]>
test: unit tests for LandingPageComponent (#5234)

### What changes were proposed in this PR?
- Add `landing-page.component.spec.ts` covering creation, the
constructor's `userChanged()` subscription (login/logout transitions
update `isLogin` and `currentUid`), `ngOnInit` calling both
`getWorkflowCount` and `loadTops`, count population from
`HubService.getCount`, the three top-loved buckets populated by
`loadTops`, the `loadTops` error path logging via `console.error`,
`getTopLovedEntries` enriching items via
`SearchService.extendSearchResultsWithHubActivityInfo(items, true,
["access"])` per action and returning a map keyed by action, and
`navigateToSearch` routing for `"workflow"`, `"dataset"`, and unknown
types.
- Stub `HubService`, `SearchService`, `WorkflowPersistService`, and
`DatasetService`; reuse `StubUserService` for a real `userChanged()`
subject; replace `Router.navigate` with a vitest spy.
### Any related issues, documentation, or discussions?
Closes: #5225
### How was this PR tested?
- Ran `yarn ng test --watch=false
--include='src/app/hub/component/landing-page/landing-page.component.spec.ts'`,
10/10 tests pass.
- Ran `yarn format:fix` (1 file formatted, 505 unchanged).
### Was this PR authored or co-authored using generative AI tooling?
Co-authored with Claude Opus 4.7 in compliance with ASF

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

With regards,
GitHub Actions via GitBox

Reply via email to