Recolor Artwork: the picker test checks the picker previews nothing on the art itself (part of #4028)

This commit is contained in:
Marco Arnulfo
2026-10-25 00:15:39 +02:00
parent 0ade6ce4f0
commit 932d1bc187
+2
View File
@@ -787,6 +787,8 @@ mod tests {
assert_eq!(fill(&app, &all[i]), previewed, "the art previews the row's new color");
double_click(&mut app, &ctx, rect, 0.1, i);
frame(&mut app, &ctx, 0.3, vec![], i);
assert_eq!(fill(&app, &all[0]), to_color(&all[0]), "the picker previews nothing itself");
let d = app.ui.dialog.as_ref().unwrap();
assert_eq!(d.kind, "colorPicker", "a double-click opens the Color Picker");
assert_eq!(d.fields.get("color").and_then(color_value), previewed, "on the row's new color");