Image Trace: the Flat Logo size test expects the status line with its note count

A trace with one note now shows "Traced with 1 note: ..." and keeps the
note for the message's hover. The test that traces a 1602 x 1602 image as
a Flat Logo checks that line and the hover's note list.
This commit is contained in:
dotCooCoo committed 2026-11-13 06:29:38 -08:00
1 parent 0e8dc3c026
commit 2a54ad21cd
1 file changed
+4 -1
@@ -107,7 +107,10 @@ fn a_large_image_traced_as_a_flat_logo_shows_the_size_it_was_traced_at() {
app.run("file.place", json!({"name": "logo.png", "dataBase64": data, "link": false})).unwrap();
trace_with(&mut app, "Flat Logo");
assert!(target(&app).2.is_some(), "the image is traced: {}", app.ui.status);
assert_eq!(app.ui.status, "Flat Logo traced the image at 801 × 801 pixels, averaged down from 1602 × 1602.");
let note = "Flat Logo traced the image at 801 × 801 pixels, averaged down from 1602 × 1602.";
let status = format!("Traced with 1 note: {note}");
assert_eq!(app.ui.status, status);
assert_eq!(app.ui.status_notes, Some((status, vec![note.to_string()])));
}
#[test]