diff --git a/crates/thing-core/tests/chooser.rs b/crates/thing-core/tests/chooser.rs index b3e2f68..99a1972 100644 --- a/crates/thing-core/tests/chooser.rs +++ b/crates/thing-core/tests/chooser.rs @@ -247,7 +247,14 @@ fn open_and_choose_by_pointer_on_f04() { let chosen = host.click(row_pos); assert!(chosen.diagnostics.is_empty(), "{mode:?}: {:?}", chosen.diagnostics); assert_eq!(chosen.outbound.len(), 1, "{mode:?}"); - assert_eq!(chosen.outbound[0].captured[0].value, InputValue::Choice(ChoiceValue { value: target_opt.value.clone() }), "{mode:?}"); + assert!( + chosen.outbound[0] + .captured + .iter() + .any(|c| c.node == nid("theme") && c.value == InputValue::Choice(ChoiceValue { value: target_opt.value.clone() })), + "{mode:?}: {:?}", + chosen.outbound[0].captured + ); assert!(surface_fills(&chosen).is_empty(), "{mode:?}: chooser closes after choice"); assert!(selection_rects(&chosen).is_empty(), "{mode:?}");