From 9b5b62897b4e13e8a6c535ee60e21e6f5e533734 Mon Sep 17 00:00:00 2001 From: giswqs Date: Mon, 2 Nov 2026 15:51:46 -0500 Subject: [PATCH] test(ui): the Summarize Within test waits for its background run Tools-pane runs moved to a thread of their own in #1317, which added click_run for the tests. #1253 branched before that, so its new test clicked Run and stepped three frames, and failed whenever the thread hadn't landed by then. --- crates/ui-egui/tests/tool_field_lists.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/ui-egui/tests/tool_field_lists.rs b/crates/ui-egui/tests/tool_field_lists.rs index 3ae2651fbf..01395dbb58 100644 --- a/crates/ui-egui/tests/tool_field_lists.rs +++ b/crates/ui-egui/tests/tool_field_lists.rs @@ -492,8 +492,7 @@ fn summarize_within_statistics_offer_the_point_layers_fields() { h.get_by_role_and_label(egui::accesskit::Role::Button, "CONCATENATE").click_accesskit(); h.run_steps(3); assert!(h.query_all_by_label("Separator").count() > 0); - h.get_by_role_and_label(egui::accesskit::Role::Button, "Run").click(); - h.run_steps(3); + click_run(&mut h); assert!(h.state().gp.last.as_ref().unwrap().0); let history = h.state().session.project.gp_history.last().unwrap(); assert_eq!(history.params["statistics"], json!([{"field":"target_only","statistic":"CONCATENATE"}]));