Ma77Ball opened a new pull request, #5236:
URL: https://github.com/apache/texera/pull/5236

   ### What changes were proposed in this PR?
   - Add `hub-workflow-detail.component.spec.ts` covering constructor wid 
resolution (NZ_MODAL_DATA vs route), role-based `isActivatedUser`, and the 
`disableWorkflowModification` call.
   - Exercise `ngOnInit` count/view/isLiked branches including default-to-0, 
current-user fallback, and the empty-`isLiked` response case.
   - Cover `loadWorkflowWithId` (hub vs non-hub fork, success reloads + center 
event, error path leaves graph untouched), `ngOnDestroy → clearWorkflow`, 
`goBack` success and error, `cloneWorkflow` early-return and success, 
`toggleLike` (short-circuits, like/unlike, refresh, no-op when service returns 
false), `formatCount`, and `changeViewDisplayStyle`.
   - Use Recipe F (`overrideComponent` remove/add) to swap 
`WorkflowEditorComponent`, `MiniMapComponent`, and 
`MarkdownDescriptionComponent` for selector-equivalent stubs so the real 
template still renders under jsdom.
   ### Any related issues, documentation, or discussions?
   Closes: #5227
   ### How was this PR tested?
   - `yarn ng test --watch=false 
--include=src/app/hub/component/workflow/detail/hub-workflow-detail.component.spec.ts`
 (32 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]

Reply via email to