Control bar: the narrow-window test checks Crop Image's Apply and Cancel

The wide-window case for the Crop Image tool now also expects Apply and
Cancel, so the test fails if either button is left out of the Control bar
in a wide window.
This commit is contained in:
dotCooCoo
2026-11-20 17:13:07 -08:00
parent 063f550802
commit 5744a52e1e
+1 -1
View File
@@ -4108,7 +4108,7 @@ fn the_control_bar_s_controls_stay_inside_the_bar_in_a_narrow_window() {
wide(&mut app, "an embedded image", &["Unembed…", "Image Trace", "Mask", "Crop Image", "Remove Background"]);
app.select_tool(vectorcraft_tools::cropimage::ID);
check(&mut app, "Crop Image");
wide(&mut app, "Crop Image", &["PPI", "X:", "Y:", "W:", "H:"]);
wide(&mut app, "Crop Image", &["PPI", "X:", "Y:", "W:", "H:", "Apply", "Cancel"]);
app.select_tool("selection");
app.run("imageTrace.make", json!({"preset": "Default"})).unwrap();
let trace = selected(&app);