Task Summary
OperatorMetadataService (frontend/src/app/workspace/service/operator-metadata/operator-metadata.service.ts, codecov ~56%) fetches the operator metadata once over HTTP and serves lookups from it; its spec only lightly touches this. Extend the spec with HttpClientTestingModule. Vitest; see frontend/TESTING.md.
Behavior to add
Flush the metadata GET (${apiEndpoint}/${OPERATOR_METADATA_ENDPOINT}) with a small fixture, then cover:
getOperatorMetadata — returns the cached observable emitting the fetched metadata.
getOperatorSchema(operatorType) — returns the matching OperatorSchema for a known type; assert the returned schema, and the behavior for an unknown type.
operatorTypeExists(operatorType) — true for a type present in the fetched metadata, false otherwise (including before the request resolves, if applicable).
Task Type
Task Summary
OperatorMetadataService(frontend/src/app/workspace/service/operator-metadata/operator-metadata.service.ts, codecov ~56%) fetches the operator metadata once over HTTP and serves lookups from it; its spec only lightly touches this. Extend the spec withHttpClientTestingModule. Vitest; seefrontend/TESTING.md.Behavior to add
Flush the metadata GET (
${apiEndpoint}/${OPERATOR_METADATA_ENDPOINT}) with a small fixture, then cover:getOperatorMetadata— returns the cached observable emitting the fetched metadata.getOperatorSchema(operatorType)— returns the matchingOperatorSchemafor a known type; assert the returned schema, and the behavior for an unknown type.operatorTypeExists(operatorType)—truefor a type present in the fetched metadata,falseotherwise (including before the request resolves, if applicable).Task Type