From c991c6ef8559adce5314907b8bfd41ceb7bb3962 Mon Sep 17 00:00:00 2001 From: easong-openai Date: Tue, 12 Aug 2025 18:12:31 -0700 Subject: [PATCH] Fix frontend test (#2247) UI fixtures are brittle! Who knew. --- codex-rs/tui/src/chatwidget/tests.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/codex-rs/tui/src/chatwidget/tests.rs b/codex-rs/tui/src/chatwidget/tests.rs index e1135e24..73497620 100644 --- a/codex-rs/tui/src/chatwidget/tests.rs +++ b/codex-rs/tui/src/chatwidget/tests.rs @@ -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"));