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
Task Summary
Four frontend specs hit the real Angular
HttpClientinstead of routing throughHttpClientTestingModule. 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 infrontend/TESTING.md§"Anti-patterns".Affected specs:
frontend/src/app/workspace/service/workflow-status/operator-reuse-cache-status.service.spec.ts— imports the realHttpClientModule.frontend/src/app/workspace/service/operator-menu/operator-menu.service.spec.ts— imports the realHttpClientModule.frontend/src/app/workspace/service/execute-workflow/execute-workflow.service.spec.ts— ships a hand-rolledStubHttpClient.frontend/src/app/dashboard/component/user/user-computing-unit/user-computing-unit.component.spec.ts— provides the realHttpClienttoken directly.Task Type