Flaky: test_switch_picker_preview_panel_main_diff fails on macOS CI due to border character expectation
test_switch_picker_preview_panel_main_diff failed on macOS CI (PR #1462 rerun, which is a doc-only change unrelated to the test).
Failure
The test expects │diff --git (border + content) at line 657 and 808:
("1", Some("│diff --git")), // Wait for diff to load (│ = border drawn)
The screen DID contain diff --git content, but the │ border character was not on the same line — it appeared on other preview lines but was absent on the diff --git line. The 30s timeout from #1459 was hit.
Root cause
On macOS CI under heavy load, skim's preview panel rendering places the │ border on some lines but not all. This is a terminal rendering artifact — the vt100 parser captures a frame where the border hasn't been drawn on every row.
Suggested fix
Use "diff --git" without the │ prefix as the expected content. The diff output is unique to the preview panel, so the border character isn't needed to disambiguate panels. This pattern already works well in other tests (e.g., line 905 uses "orphan-branch" without a border prefix).
Affected lines: tests/integration_tests/switch_picker.rs:657 and :808
Evidence: This occurred on the rerun of PR #1462 (which only changes a doc comment). Main branch CI is green — the failure is non-deterministic. Commit 5833954f (#1459) added 30s timeouts and content-found-at fallback for this exact class of issue, but the │ prefix expectation still causes false negatives.
yes re that change
Fixed in #1464 — dropped the │ prefix from both diff --git expectations. CI is green on all three platforms (Linux, macOS, Windows).