Read the accessible field label by reference

This commit is contained in:
Dan committed 2026-11-13 17:16:00 +00:00
1 parent 8572e353f8
commit 96fa700f29
1 file changed
+1 -1
@@ -28,7 +28,7 @@ fn open_with_renderer(gpu: bool) -> (Harness<'static, PhotocraftApp>, u64) {
}
fn type_side(h: &mut Harness<'static, PhotocraftApp>, label: &str, input: &str) {
let field = h.query_all_by_role(Role::SpinButton).find(|node| node.accesskit_node().label() == Some(label)).unwrap();
let field = h.query_all_by_role(Role::SpinButton).find(|node| node.accesskit_node().label().as_deref() == Some(label)).unwrap();
field.click();
h.run_steps(2);
h.key_press_modifiers(Modifiers::COMMAND, Key::A);