diff --git a/crates/ui-egui/src/tools/vector_ui/ellipse_path_menus_tests.rs b/crates/ui-egui/src/tools/vector_ui/ellipse_path_menus_tests.rs index 580a6f19e3..c6000b3512 100644 --- a/crates/ui-egui/src/tools/vector_ui/ellipse_path_menus_tests.rs +++ b/crates/ui-egui/src/tools/vector_ui/ellipse_path_menus_tests.rs @@ -77,7 +77,7 @@ fn new_layer_makes_a_new_shape_layer() { #[test] fn an_operation_with_a_pixel_layer_active_still_makes_a_shape_layer() { let mut app = app(); - app.run("layer.new", json!({})).unwrap(); + app.run("layer.new.layer", json!({})).unwrap(); app.ui.tool_options.shape_path_op = "combine".into(); let layers = layer_count(&app); drag(&mut app, [50.0, 50.0], [200.0, 200.0]); diff --git a/crates/ui-egui/src/tools/vector_ui/tests.rs b/crates/ui-egui/src/tools/vector_ui/tests.rs index b7d19a4d5f..ecfdd7e72d 100644 --- a/crates/ui-egui/src/tools/vector_ui/tests.rs +++ b/crates/ui-egui/src/tools/vector_ui/tests.rs @@ -539,7 +539,8 @@ fn path_mode_custom_shape_joins_its_hole_to_it() { app.ui.presets_ui.custom_shape = "Ring".into(); finish_shape(&mut app, Tool::CustomShape, [20.0, 20.0], [70.0, 70.0], egui::Modifiers::NONE); let ops: Vec = app.session.active().unwrap().doc.work_path.as_ref().unwrap().subpaths.iter().map(|s| s.op).collect(); - assert_eq!(ops, [PathOp::Combine, PathOp::Combine, PathOp::Join], "the rectangle, the ring and its hole"); + // The ring takes Path mode's default operation, Exclude Overlapping Shapes (#13235). + assert_eq!(ops, [PathOp::Combine, PathOp::Exclude, PathOp::Join], "the rectangle, the ring and its hole"); assert_eq!(work_covered(&app, 45, 45), 0.0, "the ring's hole"); assert_eq!(work_covered(&app, 22, 45), 1.0, "the ring"); }