From f7aea099409b0853bcd03318d50bfc21925fbd7d Mon Sep 17 00:00:00 2001 From: Nikolai Nyegaard Date: Thu, 5 Nov 2026 09:41:08 +0100 Subject: [PATCH] Menus: assert Offset's submenu path in the Color to Alpha test --- crates/ui-egui/src/menus/tests.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/ui-egui/src/menus/tests.rs b/crates/ui-egui/src/menus/tests.rs index a16ca1dbb1..f88fb32d7a 100644 --- a/crates/ui-egui/src/menus/tests.rs +++ b/crates/ui-egui/src/menus/tests.rs @@ -123,6 +123,7 @@ fn color_to_alpha_sits_in_filter_other_after_offset() { let (offset, c2a) = (at("filter.other.offset"), at("filter.other.colorToAlpha")); assert_eq!(c2a, offset + 1); assert_eq!(items[c2a].path, items[offset].path); + assert_eq!(items[offset].path, ["Filter", "Other"]); assert_eq!(items[c2a].label, "Color to Alpha…"); assert!(items[c2a].enabled, "the Background becomes a layer when the filter runs"); let others: Vec<_> = items.iter().filter(|i| i.path.first().is_some_and(|p| p == "Filter") && i.path.len() == 2).map(|i| &i.path[1]).collect();