Find theme capture by node id in f04 chooser pointer test

This commit is contained in:
Meta Vens 2026-12-06 11:12:52 +01:00
commit 53ccf0cc0e

View file

@ -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:?}");