Skip to content

add unit test coverage for NzModalCommentBoxComponent #6505

Description

@mengw15

Task Summary

frontend/src/app/workspace/component/workflow-editor/comment-box-modal/nz-modal-comment-box.component.ts (codecov ~5%, no spec) — Vitest spec (TestBed + detectChanges()), mocking WorkflowActionService, UserService, NzModalRef, NotificationService. See frontend/TESTING.md.

Behavior to cover

  • should create; detectChanges() renders
  • onClickAddComment() -> adds a comment through workflowActionService for the current user; clears the input after
  • empty/whitespace comment -> no add (if guarded)

Task Type

  • Refactor / Cleanup
  • DevOps / Deployment / CI
  • Testing / QA
  • Documentation
  • Performance
  • Other

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Fields

No fields configured for Task.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions