huskies: merge 1042
This commit is contained in:
@@ -1232,10 +1232,10 @@ fn status_shows_working_tree_info_when_coder_has_uncommitted_changes() {
|
||||
output.contains("(uncommitted)"),
|
||||
"working tree line should say '(uncommitted)': {output}"
|
||||
);
|
||||
// Should list the dirty files.
|
||||
// Overview must NOT list individual file paths — those belong in `status N`.
|
||||
assert!(
|
||||
output.contains("README.md") || output.contains("new_feature.rs"),
|
||||
"status should list at least one dirty file: {output}"
|
||||
!output.contains("README.md") && !output.contains("new_feature.rs"),
|
||||
"overview must not list individual dirty file paths: {output}"
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1309,8 +1309,13 @@ fn status_dirty_files_capped_at_twenty_with_overflow_line() {
|
||||
let agents = AgentPool::new_test(3000);
|
||||
let output = build_status_from_items(project_root, &agents, &items);
|
||||
|
||||
// Overview shows only the summary line — no path listing, no overflow.
|
||||
assert!(
|
||||
output.contains("...and 5 more"),
|
||||
"overflow line should appear when more than 20 files: {output}"
|
||||
!output.contains("...and 5 more"),
|
||||
"overview must not show overflow line — paths belong in triage view: {output}"
|
||||
);
|
||||
assert!(
|
||||
output.contains("Working tree:") && output.contains("(uncommitted)"),
|
||||
"overview should still show the summary line when dirty: {output}"
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user