Tests: the Image Trace object's Control bar and Properties checks find the Preset and View labels as drawn, their colons being runs of their own

This commit is contained in:
bflatastic
2026-11-24 07:25:20 +07:00
parent ec9a06b494
commit 91a1942f89
+3 -2
View File
@@ -676,11 +676,12 @@ fn the_control_bar_and_properties_trace_a_selected_image() {
assert_eq!(selected_preset(&app).as_deref(), Some("Default"));
// An Image Trace object: its preset (another traces it again), view, the panel and Expand.
let bar = control_frame(&mut app, &ctx, vec![]);
for s in ["Image Tracing", "Preset:", "Default", "View:", "Tracing Result", "Expand"] {
// A field's colon is drawn as a text run of its own, after its label.
for s in ["Image Tracing", "Preset", "Default", "View", "Tracing Result", "Expand"] {
assert!(has(&bar, s), "{s}");
}
let props = properties_frame(&mut app, 260.0);
assert!(has(&props, "Release") && has(&props, "View:"));
assert!(has(&props, "Release") && has(&props, "View"));
// Another view redraws it without tracing again.
let traced = app.session.active().unwrap().selection.objects.clone();
click_control(&mut app, &ctx, at(&bar, "Tracing Result"));