From 0f74f483f6e0d861823d4c2c1507e2d4ee613ebc Mon Sep 17 00:00:00 2001 From: aiongg Date: Wed, 25 Nov 2026 07:36:00 +0000 Subject: [PATCH] Properties Tab test: unnamed stops may repeat --- crates/ui-egui/src/a11y_tests.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/ui-egui/src/a11y_tests.rs b/crates/ui-egui/src/a11y_tests.rs index d4bfbcef7..c9cc652be 100644 --- a/crates/ui-egui/src/a11y_tests.rs +++ b/crates/ui-egui/src/a11y_tests.rs @@ -137,8 +137,9 @@ fn tab_walks_the_properties_controls_then_leaves_the_panel_in_the_framework_orde if region(&u) != Region::Properties { break; } + // Some stops carry no accessible name; only named ones must not repeat. let n = name(&u); - assert!(!seen.contains(&n), "Tab revisited {n} before leaving the panel: {seen:?}"); + assert!(n.is_empty() || !seen.contains(&n), "Tab revisited {n} before leaving the panel: {seen:?}"); seen.push(n); } assert_ne!(region(&u), Region::Properties, "Tab after the last Properties control leaves the panel");