From 4cd6a9f67282cb35ab4da8146960cf4ad6193f5d Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Sat, 21 Nov 2026 18:52:25 -0500 Subject: [PATCH] Keep editing test targets in view --- crates/ui-egui/tests/it/editing.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/ui-egui/tests/it/editing.rs b/crates/ui-egui/tests/it/editing.rs index 9afa93308d..5da88266af 100644 --- a/crates/ui-egui/tests/it/editing.rs +++ b/crates/ui-egui/tests/it/editing.rs @@ -7594,6 +7594,8 @@ fn private_new_chinese_keyboard_input_preserves_font_layout_and_saved_pixels() { #[test] fn moving_text_offers_the_four_way_arrow() { let mut h = harness(2, |_| {}); + // Keep the moved paragraph clear of the window's lower edge. + h.set_option("zoom", "75").unwrap(); assert!(h.execute("edit.edit_text")); h.run_steps(2); let id = h.state().views[0].id; @@ -8901,6 +8903,8 @@ fn paste_press_and_release_delivers_single_image() { #[test] fn paste_at_context_menu_point_centers_on_cursor() { let (mut h, _copies) = clipboard_harness("form.pdf", include_bytes!("../data/form.pdf").to_vec()); + // Keep the context-menu point clear of the window's lower edge. + h.set_option("zoom", "75").unwrap(); assert!(h.execute("edit.edit_text")); h.run_steps(2);