Skip to content

Four frontend specs bypass HttpClientTestingModule #5182

@Yicong-Huang

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No fields configured for Task.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions