From ebdb709f2ce2df27510bd5777477354cdb5bafe1 Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Fri, 20 Nov 2026 06:43:40 -0500 Subject: [PATCH] pipe control-1: fixes for control (5 tests) --- crates/ui-egui/tests/it/control.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/ui-egui/tests/it/control.rs b/crates/ui-egui/tests/it/control.rs index 3d8b5b025a..4760ab44e5 100644 --- a/crates/ui-egui/tests/it/control.rs +++ b/crates/ui-egui/tests/it/control.rs @@ -1193,10 +1193,14 @@ fn organize_overview_is_reachable_through_the_control_channel() { ok(&mut h, &c, "ui.set", json!({ "key": "tool", "value": "organize" })); assert_eq!(ok(&mut h, &c, "ui.state", json!({}))["active"]["organize"], true); h.run_steps(3); - for label in ["Select page 1", "Select page 3", "Rotate page 1 clockwise"] { + for label in ["Select 1", "Select 3"] { ok(&mut h, &c, "ui.click", json!({ "label": label })); h.run_steps(3); } + let page = h.get_by_label("Page 1").rect().center(); + ok(&mut h, &c, "ui.move", json!({ "x": page.x, "y": page.y })); + ok(&mut h, &c, "ui.click", json!({ "label": "Rotate page 1 clockwise" })); + h.run_steps(3); assert_eq!(ok(&mut h, &c, "ui.state", json!({}))["active"]["selected_pages"], json!([1, 3])); let app = h.state(); let rotations: Vec<_> = app.session.get(app.views[0].id).unwrap().info.pages.iter().map(|p| p.rotation).collect();