Ma77Ball opened a new issue, #5224:
URL: https://github.com/apache/texera/issues/5224
### Task Summary
Create hub.component.spec.ts for
frontend/src/app/hub/component/hub.component.ts.
The component is a thin sidebar/menu shell — it exposes @Input() isLogin,
@Input() sidebarTabs: SidebarTabs, and the routing constants DASHBOARD_HOME,
DASHBOARD_HUB_WORKFLOW_RESULT, DASHBOARD_HUB_DATASET_RESULT. It injects
GuiConfigService as config.
Behavior to cover:
- Component created with default isLogin = false and empty sidebarTabs.
- RouterLink directives bind to the correct constants for each menu item.
- Menu items render conditionally based on isLogin and sidebarTabs flags
(verify NgIf branches for each tab the template gates on).
- config (GuiConfigService) is exposed as protected, and the template uses
it for gating — verify gated items render/hide correctly per config.
### Task Type
- [ ] Refactor / Cleanup
- [ ] DevOps / Deployment / CI
- [x] Testing / QA
- [ ] Documentation
- [ ] Performance
- [ ] Other
--
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]