From 83c30a149c1daaa6de911477d7b024165c4f16f8 Mon Sep 17 00:00:00 2001 From: Kayshen-X Date: Tue, 7 Jul 2026 23:59:23 +0800 Subject: [PATCH] fix(ci): avoid windows text layout in property fixtures --- .../widget_host/property_panel_press_tests.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/crates/op-host-native/src/widget_host/property_panel_press_tests.rs b/crates/op-host-native/src/widget_host/property_panel_press_tests.rs index fa74417b4..0fb5fa157 100644 --- a/crates/op-host-native/src/widget_host/property_panel_press_tests.rs +++ b/crates/op-host-native/src/widget_host/property_panel_press_tests.rs @@ -101,14 +101,14 @@ fn property_panel_background_consumes_clicks() { seed( &mut host, r##"{ "version": "0.8.0", "children": [ - {"type":"group","id":"text_group","name":"Text Group", + {"type":"group","id":"shape_group","name":"Shape Group", "children":[ - {"type":"text","id":"label","name":"Label","content":"Hello"} + {"type":"rectangle","id":"box","name":"Box","width":80,"height":40} ]} ]}"##, ); host.editor_state_mut() - .set_single_selection(NodeId::new("text_group")); + .set_single_selection(NodeId::new("shape_group")); let point = point_inside_property_panel_without_target(&host); assert!( @@ -117,7 +117,7 @@ fn property_panel_background_consumes_clicks() { ); assert_eq!( host.editor_state().selection.anchor, - NodeId::new("text_group") + NodeId::new("shape_group") ); } @@ -130,15 +130,15 @@ fn native_property_panel_group_component_button_switches_to_detach() { {"type":"frame","id":"screen","name":"Screen", "x":40,"y":40,"width":360,"height":640, "children":[ - {"type":"group","id":"text_group","name":"Text Group", + {"type":"group","id":"shape_group","name":"Shape Group", "children":[ - {"type":"text","id":"headline","name":"Headline","content":"Welcome"} + {"type":"rectangle","id":"box","name":"Box","width":80,"height":40} ]} ]} ]}"##, ); host.editor_state_mut() - .set_single_selection(NodeId::new("text_group")); + .set_single_selection(NodeId::new("shape_group")); let create = point_for_action(&host, |action| { matches!(action, PropertyPanelAction::CreateComponent) @@ -147,7 +147,7 @@ fn native_property_panel_group_component_button_switches_to_detach() { assert!(host .editor_state() .components - .find_by_id(&NodeId::new("text_group")) + .find_by_id(&NodeId::new("shape_group")) .is_some()); let detach = point_for_action(&host, |action| { @@ -157,7 +157,7 @@ fn native_property_panel_group_component_button_switches_to_detach() { assert!(host .editor_state() .components - .find_by_id(&NodeId::new("text_group")) + .find_by_id(&NodeId::new("shape_group")) .is_none()); }