mengw15 opened a new issue, #6752:
URL: https://github.com/apache/texera/issues/6752

   ### Task Summary
   
   `UserWorkflowComponent` sits at codecov ~76% (50 uncovered lines) — its 
multi-select workflow operations and upload handlers are largely untested. 
Extend the spec, mocking the injected services. jsdom/Vitest; see 
`frontend/TESTING.md`.
   
   ### Behavior to add
   
   **UserWorkflowComponent** 
(`frontend/src/app/dashboard/component/user/user-workflow/user-workflow.component.ts`,
 codecov ~76% — EXTEND)
   
   Mock the workflow/persist/modal services (use existing `Stub…Service` 
doubles or `vi.fn()`). Cover:
   
   - Selection state: `toggleSelection` toggles a workflow in the selection; 
`multiWorkflowsOperationButtonEnabled` reflects whether ≥1 (or the required 
count) is selected; `setViewType` switches list/grid; `updateTooltip` builds 
the tooltip text.
   - Multi-select operations: `onClickDuplicateSelectedWorkflows` / 
`onClickOpenDownloadZip` / `onClickOpenRemoveWorkflow` / 
`handleConfirmDeleteSelectedWorkflows` / `deleteWorkflow` — assert each 
delegates to the expected service with the selected ids.
   - Creation / upload: `onClickCreateNewWorkflowFromDashboard` / 
`nameWorkflow` / `onClickOpenAddWorkflow` — assert the create/naming path; 
`handleFileUploads` / `handleZipUploads` — assert the uploaded files are routed 
to the import handler. `refreshSearchResult` re-runs the search.
   
   Out of scope: any branch that requires a live backend round-trip — stub the 
service boundary and assert the delegated call.
   
   ### 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]

Reply via email to