Fix feature tests after a11f81f

This commit is contained in:
Andrej730
2025-11-10 15:33:28 +05:00
parent ac11baa0c4
commit 24f991ceb1
3 changed files with 11 additions and 3 deletions
+4 -2
View File
@@ -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
+6 -1
View File
@@ -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"
@@ -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