pub fn annotate_yaml(steps: &[Step], labels: &[Option<String>]) -> StringExpand description
Like steps_to_yaml, but each step’s identifying line carries a trailing # "label" comment
naming the control it came from (§14.6) — its accessibility label, or its visible text. The
comment sits on the id: line for a tap/input/select and the route: line for a navigate, so a
reader sees route: focus # "Focus". Comments are ordinary YAML, so an annotated script parses
and replays exactly as the bare one does; this is the form the recorder streams and saves.