Ma77Ball opened a new pull request, #5237: URL: https://github.com/apache/texera/pull/5237
### What changes were proposed in this PR? - Added `search-bar.component.spec.ts` next to `search-bar.component.ts` with 11 cases covering every documented behavior of the component. - Covered `isLogin` initialization plus live updates from `UserService.userChanged()`, the empty-query clear path in `onSearchInputChange`, `searchSubject` debounce via `fakeAsync` + `tick(200)`, the full `SearchService.search` argument list, per-query result caching, 20-entry cache eviction in `addToCache`, type dispatch in `convertToName` (workflow, project, file, dataset, plus the throw path), and `performSearch` navigation to `DASHBOARD_SEARCH`. - No production code changes. ### Any related issues, documentation, or discussions? Closes: #5228 ### How was this PR tested? - `yarn ng test --watch=false --include "src/app/dashboard/component/user/search-bar/search-bar.component.spec.ts"`: 11 passed. ### Was this PR authored or co-authored using generative AI tooling? Co-authored with Claude Opus 4.7 in compliance with ASF -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
