Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

test(cua-driver): pin the cursor showcase to cursor.badges verbose (#5118)

Francesco Bonacci1c36a5cbe007
diff --git a/libs/cua-driver/rust/crates/cua-driver-e2e/tests/agent_cursor_showcase_test.rs b/libs/cua-driver/rust/crates/cua-driver-e2e/tests/agent_cursor_showcase_test.rs
index 74b0fa7393..c4b5e97921 100644
--- a/libs/cua-driver/rust/crates/cua-driver-e2e/tests/agent_cursor_showcase_test.rs
+++ b/libs/cua-driver/rust/crates/cua-driver-e2e/tests/agent_cursor_showcase_test.rs
@@ -53,6 +53,15 @@ fn semantic_cursor_showcase_records_session_and_action_states() {
"showcase requires a normal desktop, got {width}x{height}"
);
+ // The showcase asserts the session badge at rest, which only the
+ // verbose badge mode draws; minimal (the default) shows no badge
+ // until a foreground moment or a key combo.
+ call_ok(
+ &mut driver,
+ "set_config",
+ serde_json::json!({ "cursor.badges": "verbose" }),
+ );
+
call_ok(
&mut driver,
"start_session",