From 811e66f99e55aa083ffc345ad46a1f670d8e1890 Mon Sep 17 00:00:00 2001 From: Lppy <376286605@qq.com> Date: Tue, 17 Mar 2026 05:28:31 +0800 Subject: [PATCH] feat: embed cursor-interactive elements into snapshot tree (#855) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: embed cursor-interactive elements into snapshot tree * optimize format * fix: address review feedback for e2e_snapshot_cursor_interactive unitest --------- Co-authored-by: 羲洋 --- cli/src/native/actions.rs | 1 + cli/src/native/e2e_tests.rs | 41 ++++++----- cli/src/native/snapshot.rs | 131 ++++++++++++++++++------------------ 3 files changed, 86 insertions(+), 87 deletions(-) diff --git a/cli/src/native/actions.rs b/cli/src/native/actions.rs index c84b6c3..7e0c2cc 100644 --- a/cli/src/native/actions.rs +++ b/cli/src/native/actions.rs @@ -1512,6 +1512,7 @@ async fn handle_screenshot(cmd: &Value, state: &mut DaemonState) -> Result element should not have cursor-interactive info:\n{}", + line + ); + assert!( + !(line.contains("\"Btn\"") + && (line.contains("clickable") + || line.contains("focusable") + || line.contains("editable"))), + "Standard