test(ci): cover the pipeline creator in view header

Closes #7609 (closed).

The glab ci view header should show the pipeline creator. Extract the existing root panel setup so a test can draw the real header on a tcell.SimulationScreen and assert the rendered pipeline ID and creator. It does not start an interactive application or its polling workers, and the command's production behavior stays the same.

Validation: go test ./internal/commands/ci/view passed. I also verified that the new test fails if the title renderer substitutes the commit author's name, then passes with the actual renderer.

AI assistance was used to develop and test this change.

/copy_metadata #7609 (closed)

Merge request reports

Loading
Loading