fix materials / styles bim tests #4843

This commit is contained in:
Andrej730
2024-07-29 17:51:13 +05:00
parent 5e849d7b81
commit 52130a3eb6
10 changed files with 190 additions and 174 deletions
+9 -4
View File
@@ -20,15 +20,20 @@ Scenario: Unlink object
Given an empty IFC project
And I add a cube
And the object "Cube" is selected
And I add a material
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement"
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall"
And I press "bim.assign_class"
And I press "bim.add_style()"
And I press "bim.load_styles(style_type='IfcSurfaceStyle')"
And I press "bim.enable_adding_presentation_style"
And I set "scene.BIMStylesProperties.style_name" to "Style"
And I press "bim.add_presentation_style"
And the object "IfcWall/Cube" is selected
And the variable "style" is "{ifc}.by_type('IfcSurfaceStyle')[0].id()"
And I press "bim.assign_style_to_selected(style_id={style})"
When I press "bim.unlink_object(obj='IfcWall/Cube')"
Then the object "Cube" is not an IFC element
And the material "Material" is an IFC style
And the material "Material.001" is not an IFC style
And the material "Style" is an IFC style
And the material "Style.001" is not an IFC style
Scenario: Copy class
Given an empty IFC project