Added simple tests for door and window modifier

This thing used to result in errors before we fixed `replace_object_ifc_representation`
This commit is contained in:
Andrej730
2023-02-23 18:38:20 +05:00
parent 708dc6aca2
commit 3849a87adc
+21 -1
View File
@@ -493,4 +493,24 @@ Scenario: Undo test - create a wall with window opening, flip it and undo
And I prepare to undo
And I press "bim.hotkey(hotkey='S_F')"
And I undo
Then nothing happens
Then nothing happens
Scenario: Create window type based on window modifier, add an occurence of it and edit it
Given an empty IFC project
And I set "scene.BIMModelProperties.type_class" to "IfcWindowType"
And I set "scene.BIMModelProperties.type_predefined_type" to "WINDOW"
And I set "scene.BIMModelProperties.type_template" to "WINDOW"
And I press "bim.add_type()"
And I press "bim.hotkey(hotkey='S_A')"
And I press "bim.enable_editing_window()"
And I press "bim.finish_editing_window()"
Scenario: Create door type based on door modifier, add an occurence of it and edit it
Given an empty IFC project
And I set "scene.BIMModelProperties.type_class" to "IfcDoorType"
And I set "scene.BIMModelProperties.type_predefined_type" to "DOOR"
And I set "scene.BIMModelProperties.type_template" to "DOOR"
And I press "bim.add_type()"
And I press "bim.hotkey(hotkey='S_A')"
And I press "bim.enable_editing_door()"
And I press "bim.finish_editing_door()"