KEY-SLIDER-WHEEL: the wheel-nudge test reads exposure as a number (follow-up to #884)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BKWB9TCnvzJHV6xMLAj2J4
This commit is contained in:
Claude
2026-10-11 12:34:32 +00:00
parent fce79feadb
commit 870eaa74e6
+2 -2
View File
@@ -1345,14 +1345,14 @@ fn a_selected_develop_slider_accepts_wheel_nudges() {
let result = h.request("ui.clickWidget", json!({"id": name, "fx": 0.5}), T);
assert_eq!(result["ok"], true, "{result}");
let before = lightcraft_develop::controls::get(&develop(&h), "light.exposure");
let before = lightcraft_develop::controls::get(&develop(&h), "light.exposure").expect("exposure");
// A wheel event over the selected control adjusts exposure instead of
// scrolling the right sidebar (an unselected slider leaves scrolling alone).
let result = h.request("ui.scroll", json!({"dy": 120.0}), T);
assert_eq!(result["ok"], true, "{result}");
h.step();
let after = lightcraft_develop::controls::get(&develop(&h), "light.exposure");
let after = lightcraft_develop::controls::get(&develop(&h), "light.exposure").expect("exposure");
assert!(after > before, "selected exposure did not increase: {before} -> {after}");
}