Fix frontend test (#2247)

UI fixtures are brittle! Who knew.
This commit is contained in:
easong-openai
2025-08-12 18:12:31 -07:00
committed by GitHub
parent 6340acd885
commit c991c6ef85

View File

@@ -671,7 +671,10 @@ fn plan_update_renders_history_cell() {
let cells = drain_insert_history(&rx);
assert!(!cells.is_empty(), "expected plan update cell to be sent");
let blob = lines_to_single_string(cells.last().unwrap());
assert!(blob.contains("Updated"), "missing plan header: {blob:?}");
assert!(
blob.contains("Update plan"),
"missing plan header: {blob:?}"
);
assert!(blob.contains("Explore codebase"));
assert!(blob.contains("Implement feature"));
assert!(blob.contains("Write tests"));