From 24f991ceb1f70359a20f1dcd92914cebfb28c53f Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Mon, 10 Nov 2025 15:33:28 +0500 Subject: [PATCH] Fix feature tests after a11f81f --- src/bonsai/test/bim/feature/project.feature | 6 ++++-- src/bonsai/test/bim/feature/root.feature | 7 ++++++- src/bonsai/test/bim/feature/spatial.feature | 1 + 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/bonsai/test/bim/feature/project.feature b/src/bonsai/test/bim/feature/project.feature index f17d1721be..0d589bbab4 100644 --- a/src/bonsai/test/bim/feature/project.feature +++ b/src/bonsai/test/bim/feature/project.feature @@ -872,8 +872,10 @@ Scenario: Export IFC - with basic contents and saving as a relative path Scenario: Export IFC - with deleted objects synchronised Given an empty IFC project - When the object "IfcBuildingStorey/My Storey" is selected - And I set "scene.BIMSpatialDecompositionProperties.is_locked" to "False" + And I look at the "Spatial Decomposition" panel + When I set the "is_visible" property to "TRUE" + And the object "IfcBuildingStorey/My Storey" is selected + And I set the "is_locked" property to "FALSE" And I delete the selected objects And I press "bim.save_project(filepath='{cwd}/test/files/temp/export.ifc')" And an empty Blender session is started diff --git a/src/bonsai/test/bim/feature/root.feature b/src/bonsai/test/bim/feature/root.feature index acd6c79938..1969d31708 100644 --- a/src/bonsai/test/bim/feature/root.feature +++ b/src/bonsai/test/bim/feature/root.feature @@ -167,14 +167,19 @@ Scenario: Copy a wall Scenario: Copy a storey - when locked Given an empty IFC project + And I look at the "Spatial Decomposition" panel + And I set the "is_visible" property to "TRUE" And the object "IfcBuildingStorey/My Storey" is selected Then I expect an error "Error: 'IfcBuildingStorey/My Storey' is locked. Unlock it via the Spatial panel in the Project Overview tab." when "i_duplicate_the_selected_objects()" Then the object "IfcBuildingStorey/My Storey.001" does not exist Scenario: Copy a storey - when unlocked Given an empty IFC project + And I look at the "Spatial Decomposition" panel + And I set the "is_visible" property to "TRUE" + And I set "scene.BIMSpatialDecompositionProperties.is_visible" to "True" And the object "IfcBuildingStorey/My Storey" is selected - And I set "scene.BIMSpatialDecompositionProperties.is_locked" to "False" + And I set the "is_locked" property to "FALSE" When I duplicate the selected objects Then the object "IfcBuildingStorey/My Storey" and "IfcBuildingStorey/My Storey.001" are different elements And the object "IfcBuildingStorey/My Storey" is in the collection "IfcBuildingStorey/My Storey" diff --git a/src/bonsai/test/bim/feature/spatial.feature b/src/bonsai/test/bim/feature/spatial.feature index de15d6df9b..f5287c8474 100644 --- a/src/bonsai/test/bim/feature/spatial.feature +++ b/src/bonsai/test/bim/feature/spatial.feature @@ -15,6 +15,7 @@ Scenario: Set default container Scenario: Select container Given an empty IFC project And I look at the "Spatial Decomposition" panel + And I set the "is_visible" property to "TRUE" When I select the row where I see "My Building" in the "1st" list And I click "OBJECT_DATA" Then the object "IfcBuilding/My Building" is selected