diff --git a/lib/apps/fabro-cli/tests/it/scenario/lifecycle.rs b/lib/apps/fabro-cli/tests/it/scenario/lifecycle.rs index 4d805e088..7f4c98d9d 100644 --- a/lib/apps/fabro-cli/tests/it/scenario/lifecycle.rs +++ b/lib/apps/fabro-cli/tests/it/scenario/lifecycle.rs @@ -49,10 +49,16 @@ fn local_run_lifecycle() { .as_str() .expect("run should have run_id") .to_string(); + // A bare `.fabro` file has no `[workflow] name`, so `ps --json` reports + // the digraph name only as `workflow_graph_name`. + assert!( + runs[0]["workflow_name"].is_null(), + "workflow_name should be null for a bare graph file: {ps_stdout}" + ); assert_eq!( - runs[0]["workflow_name"].as_str(), + runs[0]["workflow_graph_name"].as_str(), Some("CommandPipeline"), - "workflow_name should be CommandPipeline" + "workflow_graph_name should be CommandPipeline: {ps_stdout}" ); // 3. inspect — JSON array with run_spec and conclusion