You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maka.apache.org by wy...@apache.org on 2026/10/22 22:06:49 UTC
(maka) 21/29: test(terminal-shell): capture rich history layout before its anchor assertion
This is an automated email from the ASF dual-hosted git repository.
M4n5ter pushed a commit to branch rust-preview
in repository https://gitbox.apache.org/repos/asf/maka.git
commit c648b5eafeae5151c4e44cbf1b295e6b0ddde818
Author: M4n5ter <m4...@gmail.com>
AuthorDate: Fri Oct 23 05:25:07 2026 +0800
test(terminal-shell): capture rich history layout before its anchor assertion
---
products/maka/terminal-shell/tests/real_host.rs | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/products/maka/terminal-shell/tests/real_host.rs b/products/maka/terminal-shell/tests/real_host.rs
index 1065197ac2..2abda6db5c 100644
--- a/products/maka/terminal-shell/tests/real_host.rs
+++ b/products/maka/terminal-shell/tests/real_host.rs
@@ -1898,9 +1898,11 @@ async fn real_agent_history_and_live_stream_render_and_the_app_sends_once() {
assert!(!retained.contains("History question 00"), "the cancelled Home snapped to canonical start:\n{retained}");
let boundary_tail = format!("History {boundary_turn:02} paragraph 29:");
let formatted = wait_view_state(&mut cancelled, |view, _| view.accessibility_snapshot().iter().any(|node| node.label.starts_with(&boundary_tail) && !node.label.contains("**bold**"))).await;
+ evidence("history-home-wheel-after-formatting", &formatted);
+ evidence("history-home-wheel-after-formatting-ax", &format!("{:#?}", cancelled.accessibility_snapshot()));
+ support::evidence_cells("history-home-wheel-after-formatting", &cancelled);
assert_eq!(formatted.lines().position(|line| line.contains(&wheel_marker)), Some(wheel_row), "formatting the newly completed prefix moved the same original reading anchor:\n{formatted}");
assert!(!formatted.contains("History question 00"), "formatting restored an obsolete Home target:\n{formatted}");
- evidence("history-home-wheel-after-formatting", &formatted);
support::wait_draft(&cancel_client, &fixture.session, HOME_DRAFT).await;
assert_eq!(client.query("agent", "observe", json!({"sessionId":fixture.session})).await.unwrap()["through"], observed["through"], "history navigation must not change the Host range");
evidence("history-home-wheel-cancels-late-reply", &retained);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org