Skip to content

Commit c991c6e

Browse files
Fix frontend test (#2247)
UI fixtures are brittle! Who knew.
1 parent 6340acd commit c991c6e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

codex-rs/tui/src/chatwidget/tests.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,10 @@ fn plan_update_renders_history_cell() {
671671
let cells = drain_insert_history(&rx);
672672
assert!(!cells.is_empty(), "expected plan update cell to be sent");
673673
let blob = lines_to_single_string(cells.last().unwrap());
674-
assert!(blob.contains("Updated"), "missing plan header: {blob:?}");
674+
assert!(
675+
blob.contains("Update plan"),
676+
"missing plan header: {blob:?}"
677+
);
675678
assert!(blob.contains("Explore codebase"));
676679
assert!(blob.contains("Implement feature"));
677680
assert!(blob.contains("Write tests"));

0 commit comments

Comments
 (0)