Skip to content

Four frontend specs bypass HttpClientTestingModule #5182

Closed

Description

@Yicong-Huang

Task Summary

Four frontend specs hit the real Angular HttpClient instead of routing through HttpClientTestingModule. Unit tests should mock HTTP rather than depend on a working backend or hand-rolled HTTP doubles, both for CI stability and to match the convention in frontend/TESTING.md §"Anti-patterns".

Affected specs:

  • frontend/src/app/workspace/service/workflow-status/operator-reuse-cache-status.service.spec.ts — imports the real HttpClientModule.
  • frontend/src/app/workspace/service/operator-menu/operator-menu.service.spec.ts — imports the real HttpClientModule.
  • frontend/src/app/workspace/service/execute-workflow/execute-workflow.service.spec.ts — ships a hand-rolled StubHttpClient.
  • frontend/src/app/dashboard/component/user/user-computing-unit/user-computing-unit.component.spec.ts — provides the real HttpClient token directly.

Task Type

  • Testing / QA

Activity

  1. added a commit that references this issue on May 24, 2026
    cfc6d9a
  2. added a commit that references this issue on Jun 22, 2026
    7170921
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions